mirror of
git://develop.git.wordpress.org/
synced 2025-03-14 17:09:47 +01:00
Fix fallback case for __ngettext(). http://mosquito.wordpress.org/view.php?id=1125
git-svn-id: https://develop.svn.wordpress.org/trunk@2454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d381ae36da
commit
85c7025241
@ -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…
x
Reference in New Issue
Block a user