Although there usually are no plurals in chinese, there's an exception
for words related to persons, when not preceeded by a numeric word. Sources: - http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html#f3 - https://answers.yahoo.com/question/index?qid=20110606153553AAAW5zX
This commit is contained in:
parent
4565b72a7d
commit
4918bef4dc
|
@ -363,6 +363,7 @@ $(function() {
|
||||||
switch (this.language)
|
switch (this.language)
|
||||||
{
|
{
|
||||||
case 'fr':
|
case 'fr':
|
||||||
|
case 'zh':
|
||||||
return (n > 1 ? 1 : 0);
|
return (n > 1 ? 1 : 0);
|
||||||
case 'pl':
|
case 'pl':
|
||||||
return (n == 1 ? 0 : n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2);
|
return (n == 1 ? 0 : n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2);
|
||||||
|
|
|
@ -303,6 +303,7 @@ class i18n
|
||||||
{
|
{
|
||||||
switch (self::$_language) {
|
switch (self::$_language) {
|
||||||
case 'fr':
|
case 'fr':
|
||||||
|
case 'zh':
|
||||||
return ($n > 1 ? 1 : 0);
|
return ($n > 1 ? 1 : 0);
|
||||||
case 'pl':
|
case 'pl':
|
||||||
return ($n == 1 ? 0 : $n%10 >= 2 && $n %10 <=4 && ($n%100 < 10 || $n%100 >= 20) ? 1 : 2);
|
return ($n == 1 ? 0 : $n%10 >= 2 && $n %10 <=4 && ($n%100 < 10 || $n%100 >= 20) ? 1 : 2);
|
||||||
|
|
Loading…
Reference in New Issue