Add custom pluralizer for Slovenian. Fixes #2049.
This commit is contained in:
parent
ab3e5e6d43
commit
9830cb27e1
1 changed files with 2 additions and 0 deletions
|
@ -2,3 +2,5 @@ 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