]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
Get OAuth working, including a hack for Potlatch
[rails.git] / config / initializers / i18n.rb
index 37d3cdebfe48f7333aaea389fb68cc46c4633fb9..2561c07f21149ba5526e1db94c92e8194f9e0268 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,6 @@ 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)