2 original_verbosity = $VERBOSE
4 INTERPOLATION_PATTERN = /\{\{(\w+)\}\}/
5 $VERBOSE = original_verbosity
11 alias_method :old_init_translations, :init_translations
16 store_translations(:nb, translations[:no])
17 translations[:no] = translations[:nb]
19 friendly = translate('en', 'time.formats.friendly')
21 available_locales.each do |locale|
22 unless lookup(locale, 'time.formats.friendly')
23 store_translations(locale, :time => { :formats => { :friendly => friendly } })
27 @skip_syntax_deprecation = true
32 module PluralizationFallback
33 def pluralize(locale, entry, count)
35 rescue InvalidPluralizationData => ex
36 raise ex unless ex.entry.has_key?(:other)
43 I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
44 I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
45 I18n.load_path << RAILS_ROOT + "/config/pluralizers.rb"
47 I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)