aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support.rb
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-09-15 10:26:50 +0200
committerPratik Naik <pratiknaik@gmail.com>2008-09-20 19:26:16 +0100
commita3b7fa78bfdc33e45e39c095b67e02d50a2c7bea (patch)
tree0de20fad9f3a7ce2e49d660d1243b5b02a32e290 /activesupport/lib/active_support.rb
parent8cb7d460439a9b20a80a77b6370c1107233d1cbd (diff)
downloadrails-a3b7fa78bfdc33e45e39c095b67e02d50a2c7bea.tar.gz
rails-a3b7fa78bfdc33e45e39c095b67e02d50a2c7bea.tar.bz2
rails-a3b7fa78bfdc33e45e39c095b67e02d50a2c7bea.zip
I18n: Introduce I18n.load_path in favor of I18n.load_translations and change Simple backend to load translations lazily. [#1048 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support.rb')
-rw-r--r--activesupport/lib/active_support.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb
index 7e34a871e3..b30faff06d 100644
--- a/activesupport/lib/active_support.rb
+++ b/activesupport/lib/active_support.rb
@@ -56,7 +56,7 @@ require 'active_support/time_with_zone'
require 'active_support/secure_random'
-I18n.load_translations File.dirname(__FILE__) + '/active_support/locale/en-US.yml'
+I18n.load_path << File.dirname(__FILE__) + '/active_support/locale/en-US.yml'
Inflector = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Inflector', 'ActiveSupport::Inflector')
Dependencies = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Dependencies', 'ActiveSupport::Dependencies')