Complete.Org: Mailing Lists: Archives: freeciv-i18n: February 2006:
[freeciv-i18n] Bad Plural-Forms in ru.po?

[freeciv-i18n] Bad Plural-Forms in ru.po?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bugs@xxxxxxxxxxx
Cc: freeciv-i18n@xxxxxxxxxxx
Subject: [freeciv-i18n] Bad Plural-Forms in ru.po?
From: Egor Vyscrebentsov <evyscr@xxxxxxxxx>
Date: Thu, 16 Feb 2006 14:21:42 +0300

Good daytime!

After long thought I think that current Plural-Forms formula from ru.po
is broken.

Now it is:
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2;\n"

This is right in all variants except (n%100<10 || n%100>=20) && n%10==1
Those values should return 0.

So, right formula should be (IMO) something like:
"Plural-Forms: nplurals=3; plural=n%100==1 || n%10=1 && n%100>=20 ? 0 : "
"n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

If no one will protest, I will commit this change at next week.

Thanks, evyscr

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-i18n] Bad Plural-Forms in ru.po?, Egor Vyscrebentsov <=