Skip to content

Commit

Permalink
[FIX] Renamed ENV['LANG'] for generating translated guides to ENV['LA…
Browse files Browse the repository at this point in the history
…NGUAGE'] so there's no mixup with OS env vars
  • Loading branch information
karmi committed Jan 2, 2011
1 parent a388c10 commit 1877faa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/guides/rails_guides/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -67,7 +67,7 @@ class Generator
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
Expand Down

0 comments on commit 1877faa

Please sign in to comment.