aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/i18n.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-06-20 14:44:38 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-20 14:44:38 +0200
commitdad80ad7862834543783974a22d316f074cfee66 (patch)
tree81c150963c777ce307a55efe98776407bd351d09 /activesupport/lib/active_support/i18n.rb
parent772c2b0b862850c29e7f112a5ddeaf1c0ed06408 (diff)
downloadrails-dad80ad7862834543783974a22d316f074cfee66.tar.gz
rails-dad80ad7862834543783974a22d316f074cfee66.tar.bz2
rails-dad80ad7862834543783974a22d316f074cfee66.zip
I18n.reload! is only called if any of the locale files actually changed.
Diffstat (limited to 'activesupport/lib/active_support/i18n.rb')
-rw-r--r--activesupport/lib/active_support/i18n.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/i18n.rb b/activesupport/lib/active_support/i18n.rb
index 0ffdd904fd..45b9d20c01 100644
--- a/activesupport/lib/active_support/i18n.rb
+++ b/activesupport/lib/active_support/i18n.rb
@@ -4,5 +4,6 @@ rescue LoadError => e
$stderr.puts "You don't have i18n installed in your application. Please add it to your Gemfile and run bundle install"
raise e
end
+
I18n.load_path << "#{File.dirname(__FILE__)}/locale/en.yml"
ActiveSupport.run_load_hooks(:i18n)