Force an I18n reload to work around ordering problem

Unfortunately the rails-i18n-updater plugin adds the rails translations
to the load path after rails has already loaded the translations, so we
have to force a reload to get the translated versions.
This commit is contained in:
Tom Hughes 2011-10-19 21:59:03 +01:00
parent 07b834785f
commit 2cac555019

View file

@ -40,3 +40,7 @@ I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
I18n.load_path << "#{Rails.root}/config/pluralizers.rb"
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
Rails.configuration.after_initialize do
I18n.reload!
end