4 def init_translations_with_mn_cleanup
5 init_translations_without_mn_cleanup
7 translations[:mn][:errors][:template].delete(:body)
8 translations[:mn][:activemodel][:errors][:template].delete(:body)
9 translations[:mn][:activerecord][:errors][:template].delete(:body)
12 alias_method_chain :init_translations, :mn_cleanup
16 def find_first_string_or_lambda_default(defaults)
17 defaults.each_with_index { |default, ix| return ix if default && !default.is_a?(Symbol) }
22 module PluralizationFallback
23 def pluralize(locale, entry, count)
25 rescue InvalidPluralizationData => ex
26 raise ex unless ex.entry.has_key?(:other)
33 I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback)
34 I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
36 I18n.fallbacks.map("no" => "nb")