|Reported by:||ramiro||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If, as exemplified in the official GNU gettext documentation, the plural form specification headers
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"Plural-Forms: nplurals=2; plural=n>1;\n"
are used instead of
"Plural-Forms: nplurals=2; plural=n != 1 ? 1 : 0;\n"
"Plural-Forms: nplurals=2; plural=n>1 ? 1 : 0;\n"
See http://groups.google.com/group/django-users/browse_frm/thread/12f39fe090d39e78?hl=en for the original report by Julien.
This could affect JS i18n for languages that use two-forms pluralization rules, i.e.: Danish, Dutch, English, Faroese, German, Norwegian, Swedish, Estonian, Finnish, Greek, Hebrew, Italian, Portuguese, Spanish, Esperanto, French, Brazilian Portuguese (see the GNU gettext documentation linked above.)
The attached patch modifies the pluralidx() function to work on both scenarios.
Change History (4)
Changed 8 years ago by ramiro
comment:1 Changed 8 years ago by ramiro
- Component changed from Uncategorized to Internationalization
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 8 years ago by mtredinnick
- Triage Stage changed from Unreviewed to Ready for checkin