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::PluralizationFallback)
22 I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
24 I18n.fallbacks.map("no" => "nb")