Model plural label fix: Count must be 'other' to apply :other key with every locale.  #1517

Merged
merged 1 commit into from Feb 13, 2013

Conversation

Projects
None yet
3 participants
@estum
Contributor

estum commented Feb 12, 2013

Two for count doesn't apply right plural key (:other) for some languages.
For example, in russian locale it calls :few key and applies wrong translation.

 >> I18n.locale = :ru
 >> I18n.t 'activerecord.models.user', count: 2
 => "Пользователя"  #wrong
 >> I18n.t 'activerecord.models.user', count: 'other'
 => "Пользователи"  #right
 >> I18n.t.locale = :en 
 => I18n.t 'activerecord.models.user', count: 'other'
 => "Users"
Model plural label fix
Count must be 'other' to apply :other key with every locale. 
@a-vakulenko

This comment has been minimized.

Show comment
Hide comment
@a-vakulenko

a-vakulenko Feb 13, 2013

I agree, this is very important.

I agree, this is very important.

bbenezech added a commit that referenced this pull request Feb 13, 2013

Merge pull request #1517 from tonissimo/patch-2
Model plural label fix: Count must be 'other' to apply :other key with every locale. 

@bbenezech bbenezech merged commit 026a145 into sferik:master Feb 13, 2013

1 check passed

default The Travis build passed
Details

@estum estum deleted the estum:patch-2 branch Feb 13, 2013

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