2011-01-29 6 views
0

그리고 수동으로 규칙을 추가해야한다면 어디에 추가합니까?레일 3에 CLDR 복수화 규칙이 미리 정의되어 있습니까? 아니면 수동으로 정의해야합니까?

내가 시도한 것은 : locale => "fr"이고 http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html에 따르면 0..2 내의 모든 것이 "one"형식이어야하지만 "1.5"값을 사용하는 "other"형식을 얻게됩니다. ".

편집 : 나는이 https://github.com/svenfuchs/i18n/blob/master/test/test_data/locales/plurals.rb

답변

0
# Note that <tt>I18n::Backend::Simple</tt> only supports an algorithm for English 
# pluralization rules. Other algorithms can be supported by custom backends. 

소스 I18n.rb

+0

대해서 이야기하는 기회 것 같은데. 이미 CLDR를위한 루비 라이브러리가 적어도 두 개 있습니다. –