]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
When asked to edit an object centre on the correct location
[rails.git] / config / initializers / i18n.rb
index 37d3cdebfe48f7333aaea389fb68cc46c4633fb9..7b5db5aabf1d2c0babbc914924bfa0813a6fe408 100644 (file)
@@ -1,9 +1,4 @@
 module I18n
-  original_verbosity = $VERBOSE
-  $VERBOSE = nil
-  INTERPOLATION_PATTERN = /\{\{(\w+)\}\}/
-  $VERBOSE = original_verbosity
-
   module Backend
     class Simple
       module Implementation
@@ -42,6 +37,10 @@ end
 
 I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
 I18n::Backend::Simple.send(:include, I18n::Backend::PluralizationFallback)
-I18n.load_path << RAILS_ROOT + "/config/pluralizers.rb"
+I18n.load_path << "#{Rails.root}/config/pluralizers.rb"
 
 I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
+
+Rails.configuration.after_initialize do
+  I18n.reload!
+end