From: Tom Hughes Date: Wed, 19 Oct 2011 20:59:03 +0000 (+0100) Subject: Force an I18n reload to work around ordering problem X-Git-Tag: live~6073 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2cac5550198844d4e1b459b6f78ce8c8485e9a36 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. --- diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index 2561c07f2..7b5db5aab 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -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