From 6238bf449d68bca466967a877886f8dc84f3cbe5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 27 Oct 2004 18:23:06 +0000 Subject: :- Patch #12096 by Axel: fixed problem with plurals for some languages. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index cb40c7f54..36e3ac3df 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -869,7 +869,7 @@ function format_rss_item($title, $link, $description, $args = array()) { * A translated string. */ function format_plural($count, $singular, $plural) { - if ($count == 1) return t($singular); + if ($count == 1) return t($singular, array("%count" => $count)); // get the plural index through the gettext formula $index = (function_exists('locale')) ? locale_get_plural($count) : -1; @@ -879,7 +879,7 @@ function format_plural($count, $singular, $plural) { else { switch ($index) { case "0": - return t($singular); + return t($singular, array("%count" => $count)); case "1": return t($plural, array("%count" => $count)); default: -- cgit v1.2.3