diff options
author | Anil Wadghule <anildigital@gmail.com> | 2010-04-12 22:20:55 +0530 |
---|---|---|
committer | Anil Wadghule <anildigital@gmail.com> | 2010-04-12 22:53:49 +0530 |
commit | 84e46437fa50782dd38b96b8df00ca8b017c892e (patch) | |
tree | 9e9743de0e1cd9220a0f9a850865787f41cba875 /railties/guides/source/i18n.textile | |
parent | 41bcf06d3289e2292fcc3819c8f104252af36adc (diff) | |
download | rails-84e46437fa50782dd38b96b8df00ca8b017c892e.tar.gz rails-84e46437fa50782dd38b96b8df00ca8b017c892e.tar.bz2 rails-84e46437fa50782dd38b96b8df00ca8b017c892e.zip |
Replace 'RAILS_ROOT' to 'Rails.root' and 'RAILS_ENV' to 'Rails.env' in significant places.
Diffstat (limited to 'railties/guides/source/i18n.textile')
-rw-r--r-- | railties/guides/source/i18n.textile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/i18n.textile b/railties/guides/source/i18n.textile index ec69f770ee..9e882bc0a1 100644 --- a/railties/guides/source/i18n.textile +++ b/railties/guides/source/i18n.textile @@ -103,7 +103,7 @@ The default +environment.rb+ files has instructions on how to add locales from a # 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.load_path << Dir[File.join(Rails.root, 'my', 'locales', '*.{rb,yml}')] # config.i18n.default_locale = :de </ruby> @@ -117,7 +117,7 @@ To tell the I18n library where it can find your custom translation files you can # in config/initializers/locale.rb # tell the I18n library where to find your translations -I18n.load_path << Dir[ File.join(RAILS_ROOT, 'lib', 'locale', +I18n.load_path << Dir[ File.join(Rails.root, 'lib', 'locale', '*.{rb,yml}') ] # set default locale to something other than :en @@ -423,7 +423,7 @@ NOTE: The default locale loading mechanism in Rails does not load locale files i <ruby> # config/environment.rb - config.i18n.load_path += Dir[File.join(RAILS_ROOT, 'config', 'locales', '**', '*.{rb,yml}')] + config.i18n.load_path += Dir[File.join(Rails.root, 'config', 'locales', '**', '*.{rb,yml}')] </ruby> Do check the "Rails i18n Wiki":http://rails-i18n.org/wiki for list of tools available for managing translations. |