6 alias_method :old_init_translations, :init_translations
11 store_translations(:nb, translations[:no])
12 translations[:no] = translations[:nb]
14 friendly = translate('en', 'time.formats.friendly')
16 available_locales.each do |locale|
17 unless lookup(locale, 'time.formats.friendly')
18 store_translations(locale, :time => { :formats => { :friendly => friendly } })
25 module PluralizationFallback
26 def pluralize(locale, entry, count)
28 rescue InvalidPluralizationData => ex
29 raise ex unless ex.entry.has_key?(:other)
36 I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
37 I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
38 I18n.load_path << RAILS_ROOT + "/config/pluralizers.rb"
40 I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)