5 alias_method :old_init_translations, :init_translations
10 merge_translations(:nb, translations[:no])
11 translations[:no] = translations[:nb]
13 friendly = translate('en', 'time.formats.friendly')
15 available_locales.each do |locale|
16 unless lookup(locale, 'time.formats.friendly')
17 store_translations(locale, :time => { :formats => { :friendly => friendly } })
23 module PluralizationFallback
24 def pluralize(locale, entry, count)
26 rescue InvalidPluralizationData => ex
27 raise ex unless ex.entry.has_key?(:other)
34 I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
35 I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
36 I18n.load_path << RAILS_ROOT + "/config/pluralizers.rb"
38 I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)