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
This commit is contained in:
parent
3e2b1f0d75
commit
cb76d37c05
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue