aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/environment.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-11-18 14:23:13 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-11-18 14:23:13 +0100
commitd9b92ee11b33fed5c7a94a91415fa846705f7dd3 (patch)
treeb936c0e1b7c9d3fbe8656a1b3a449383dcc00d55 /railties/environments/environment.rb
parent75fb8dfb996f5c5d8b64d10ce7b27eeb681d5316 (diff)
downloadrails-d9b92ee11b33fed5c7a94a91415fa846705f7dd3.tar.gz
rails-d9b92ee11b33fed5c7a94a91415fa846705f7dd3.tar.bz2
rails-d9b92ee11b33fed5c7a94a91415fa846705f7dd3.zip
Added config.i18n settings gatherer to config/environment, auto-loading of all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
Diffstat (limited to 'railties/environments/environment.rb')
-rw-r--r--railties/environments/environment.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index f27ccc6bb8..8fef8ff610 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -45,6 +45,11 @@ Rails::Initializer.run do |config|
# Run "rake -D time" for a list of tasks for finding time zone names. Comment line to use default local time.
config.time_zone = 'UTC'
+ # The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
+ # All files from config/locales/*.rb,yml are added automatically.
+ # config.i18n.load_path << Dir[File.join(RAILS_ROOT, 'my', 'locales', '*.{rb,yml}')]
+ # config.i18n.default_locale = :de
+
# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random,