Implement correct localization of plural forms #687

Phorum opened this Issue Jun 11, 2011 · 1 comment


None yet

1 participant

Phorum commented Jun 11, 2011

It would be good to have correct localizations for messages with plural forms. In English, it is phrases like "1 more file" and "2 more files" and many more others. Without such feature there is no way to make good and correct localization.
(This was mentioned in [,129305 forum thread] but ticket was never created, as I find).

For reference, here is how it is done in gettext - [ Plural-forms]

For example, it stores information of how to select right plural form in such way:
Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;

If there is any ideas or development in this area, please point me at it.

Reported by: Alexey Torkhov
Imported from TRAC:

Phorum commented Jun 11, 2011

By: brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment