From f1f458ddf029cdcd0a3de4312c9dc28ac9030804 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 21 May 2002 11:50:00 +0000 Subject: Poll.module: Cosmetical bugfix, "1 vote" instead of "1 votes" (using format_plural) --- modules/poll.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/poll.module') diff --git a/modules/poll.module b/modules/poll.module index e679549b5..687265a6c 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -256,7 +256,7 @@ function poll_view(&$node, $main = 0, $block = 0) { $width = round($node->chvotes[$key] * 100 / $votesmax); $percentage = round($node->chvotes[$key] * 100 / max($votestotal, 1)); - $output .= "
$value
$percentage%". (!$block ? " (". $node->chvotes[$key] ." votes)" : "") ."
"; + $output .= "
$value
$percentage%". (!$block ? " (". format_plural($node->chvotes[$key], "vote", "votes") .")" : "") ."
"; if ($width == 0) { $output .= "
 
"; } -- cgit v1.2.3