diff options
Diffstat (limited to 'guides/rails_guides')
-rw-r--r-- | guides/rails_guides/generator.rb | 2 | ||||
-rw-r--r-- | guides/rails_guides/helpers.rb | 2 | ||||
-rw-r--r-- | guides/rails_guides/markdown.rb | 11 |
3 files changed, 3 insertions, 12 deletions
diff --git a/guides/rails_guides/generator.rb b/guides/rails_guides/generator.rb index aaeae38531..3b124ef236 100644 --- a/guides/rails_guides/generator.rb +++ b/guides/rails_guides/generator.rb @@ -85,7 +85,7 @@ module RailsGuides @all = ENV['ALL'] == '1' @kindle = ENV['KINDLE'] == '1' @version = ENV['RAILS_VERSION'] || `git rev-parse --short HEAD`.chomp - @lang = $GUIDES_LANGUAGE = ENV['GUIDES_LANGUAGE'] || 'en' + @lang = ENV['GUIDES_LANGUAGE'] end def register_kindle_mime_types diff --git a/guides/rails_guides/helpers.rb b/guides/rails_guides/helpers.rb index 8d246d1700..a288d0f0f4 100644 --- a/guides/rails_guides/helpers.rb +++ b/guides/rails_guides/helpers.rb @@ -13,7 +13,7 @@ module RailsGuides end def documents_by_section - @documents_by_section ||= YAML.load_file(File.expand_path("../../source/#{$GUIDES_LANGUAGE}/documents.yaml", __FILE__)) + @documents_by_section ||= YAML.load_file(File.expand_path('../../source/documents.yaml', __FILE__)) end def documents_flat diff --git a/guides/rails_guides/markdown.rb b/guides/rails_guides/markdown.rb index 343e74f776..650489e6cb 100644 --- a/guides/rails_guides/markdown.rb +++ b/guides/rails_guides/markdown.rb @@ -120,7 +120,7 @@ module RailsGuides @index = <<-INDEX.html_safe <div id="subCol"> - <h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />#{language_chapter}</h3> + <h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3> #{@index} </div> INDEX @@ -134,15 +134,6 @@ module RailsGuides @title = "Ruby on Rails Guides" end end - - def language_chapter - case $GUIDES_LANGUAGE - when 'pt_br' - 'Capitulos' - else - 'Chapters' - end - end def node_index(hierarchy) case hierarchy.size |