Skip to content
Browse files

[FIX] Renamed ENV['LANG'] for generating translated guides to ENV['LA…

…NGUAGE'] so there's no mixup with OS env vars
  • Loading branch information...
1 parent a388c10 commit 1877faa7ac2053628b63a665ab822e18f2939a83 @karmi karmi committed Jan 2, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/guides/rails_guides/generator.rb
View
6 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 @@ 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

0 comments on commit 1877faa

Please sign in to comment.
Something went wrong with that request. Please try again.