-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plural translation wrong #10
Comments
Where did you get that plural form expression?
You can correct your poedit formula or enable plural formula reader to read it from your mo file. |
It is Poedit's default. The same as you can find on http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html?id=l10n/pluralforms
You mean like this? |
NGettext uses the Unicode CLDR project data for plural form formula generation. But now it's outdated (see issue #4). And still, cldr provides formula different from yours. Form with 0 index is used for 0-type values, index 1 — for numhers ending with 1, and index 2 for others. |
It's the second parameter of the Catalog constructor in your case. |
Thanks! |
Those are translated to latvian which has
(nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);)
using Poedit.Console prints: (in paranthesis I have added from which translation it comes)
I really don't care about '0' case, because that's the first time I hear my native language has 3 types of those, but anyway, they are all wrong! xgettext prints this correctly.
The text was updated successfully, but these errors were encountered: