-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Wrong pluralization rules. #461
Comments
Though now I think that abs() could be used globally until we get some evidence, that it doesn't work this way in some language. At least this way we'll fix more locales than we'll break. |
abs works well for cs locale |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pluralization rules for the Engilsh and many other languages are wrong. CLDR contains the right pluralization rules, and ruby-cldr gem gives them as ruby code. For example, for :en locales it is like this:
Here's a CLDR defined difference:
1.0
- CLDR: other, rails-i18n: oneThis difference comes from ruby-cldr as CLDR doesn't seem to define rules for negative numbers (also coverd by #270):
-1
- ruby-cldr: one, rails-i18n: otherExplanations of why rails-i18n is wrong in these two cases is in the answer here: http://english.stackexchange.com/questions/69162/are-these-plural-or-singular
I propose not to change globally OneOther pluralization for all the locales, but to fix languages one by one whenever we are sure that it works some way. So this issue is about fixing :en and :en-xx pluralizations.
Also one more general ruby-cldr difference:
'1'
- ruby-cldr: one, rails-i18n: otherI think, that converting strings to numbers for the check is nice.
The text was updated successfully, but these errors were encountered: