4 def find_first_string_or_lambda_default(defaults)
5 defaults.each_with_index { |default, ix| return ix if default && !default.is_a?(Symbol) }
10 module PluralizationFallback
11 def pluralize(locale, entry, count)
13 rescue InvalidPluralizationData => ex
14 raise ex unless ex.entry.has_key?(:other)
21 I18n::Backend::Simple.include(I18n::Backend::Pluralization)
22 I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback)
23 I18n.load_path << "#{Rails.root}/config/pluralizers.rb"
25 I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
27 I18n.fallbacks.map("no" => "nb")
29 Rails.configuration.after_initialize do