Update the :en and :sl pluralizers to default to :other if a more
specific key does not exist. This then allows r16613 to be reverted as there is no need to distinguish the cases. Fixes #2087.
This commit is contained in:
parent
78fd4588b8
commit
6af3f93761
3 changed files with 18 additions and 8 deletions
|
@ -2,5 +2,3 @@ require 'globalize/i18n/missing_translations_log_handler'
|
|||
|
||||
I18n.missing_translations_logger = Logger.new("#{RAILS_ROOT}/log/missing_translations.log")
|
||||
I18n.exception_handler = :missing_translations_log_handler
|
||||
|
||||
I18n.backend.add_pluralizer :sl, lambda { |c| c%100 == 1 ? :one : c%100 == 2 ? :two : (3..4).include?(c%100) ? :few : :other }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue