diff options
author | Karel Minarik <karmi@karmi.cz> | 2011-01-02 22:09:09 +0100 |
---|---|---|
committer | Karel Minarik <karmi@karmi.cz> | 2011-01-02 22:09:09 +0100 |
commit | 1877faa7ac2053628b63a665ab822e18f2939a83 (patch) | |
tree | ee09cae13f0f5f431880f2cd41bdbdb3326d4ed9 /railties/guides | |
parent | a388c10f96a32d5be6154b813662f1a085ec23f1 (diff) | |
download | rails-1877faa7ac2053628b63a665ab822e18f2939a83.tar.gz rails-1877faa7ac2053628b63a665ab822e18f2939a83.tar.bz2 rails-1877faa7ac2053628b63a665ab822e18f2939a83.zip |
[FIX] Renamed ENV['LANG'] for generating translated guides to ENV['LANGUAGE'] so there's no mixup with OS env vars
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index e4f9ea4916..154355cac1 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -38,8 +38,8 @@ # Note that if you are working on a guide generation will by default process # only that one, so ONLY is rarely used nowadays. # -# LANG -# Use LANG when you want to generate translated guides in <tt>source/<LANG></tt> +# LANGUAGE +# Use LANGUAGE when you want to generate translated guides in <tt>source/<LANGUAGE></tt> # folder (such as <tt>source/es</tt>). Ignore it when generating English guides. # # EDGE @@ -67,7 +67,7 @@ module RailsGuides GUIDES_RE = /\.(?:textile|html\.erb)$/ def initialize(output=nil) - @lang = ENV['LANG'] + @lang = ENV['LANGUAGE'] initialize_dirs(output) create_output_dir_if_needed set_flags_from_environment |