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 } })
22 @skip_syntax_deprecation = true
27 module PluralizationFallback
28 def pluralize(locale, entry, count)
30 rescue InvalidPluralizationData => ex
31 raise ex unless ex.entry.has_key?(:other)
38 I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
39 I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
40 I18n.load_path << RAILS_ROOT + "/config/pluralizers.rb"
42 I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)