1 require 'globalize/i18n/missing_translations_log_handler'
3 I18n.missing_translations_logger = Logger.new("#{RAILS_ROOT}/log/missing_translations.log")
4 I18n.exception_handler = :missing_translations_log_handler
10 alias_method :old_init_translations, :init_translations
15 merge_translations(:nb, translations[:no])
16 translations[:no] = translations[:nb]
18 friendly = translate('en', 'time.formats.friendly')
20 available_locales.each do |locale|
21 time_formats = I18n.t('time.formats', :locale => locale)
23 unless time_formats.has_key?(:friendly)
24 store_translations(locale, :time => { :formats => { :friendly => friendly } })