From cb76d37c053cc85e3ada4abb076f5350c6f6ddec Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 17 Mar 2005 18:15:18 +0000 Subject: [PATCH] Fix fallback case for __ngettext(). http://mosquito.wordpress.org/view.php?id=1125 git-svn-id: http://svn.automattic.com/wordpress/trunk@2454 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-l10n.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/wp-l10n.php b/wp-includes/wp-l10n.php index b4ccc36b08..c051fdad09 100644 --- a/wp-includes/wp-l10n.php +++ b/wp-includes/wp-l10n.php @@ -54,7 +54,10 @@ function __ngettext($single, $plural, $number, $domain = 'default') { if (isset($l10n[$domain])) { return $l10n[$domain]->ngettext($single, $plural, $number); } else { - return $text; + if ($number != 1) + return $plural; + else + return $single; } }