From 1877faa7ac2053628b63a665ab822e18f2939a83 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Sun, 2 Jan 2011 22:09:09 +0100 Subject: [FIX] Renamed ENV['LANG'] for generating translated guides to ENV['LANGUAGE'] so there's no mixup with OS env vars --- railties/guides/rails_guides/generator.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/guides/rails_guides/generator.rb') 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 source/ +# LANGUAGE +# Use LANGUAGE when you want to generate translated guides in source/ # folder (such as source/es). 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 -- cgit v1.2.3