diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-10-17 10:19:31 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-10-17 10:19:31 -0300 |
commit | 759e797c1d677d0695885dc959d6ebaecc538252 (patch) | |
tree | 845bb9b6579cc4d5175b31acf0bbfd30c2fd7f77 /guides/rails_guides | |
parent | 9eeb00976d4b0a963c58117b46b7a5c6edcacc31 (diff) | |
download | rails-759e797c1d677d0695885dc959d6ebaecc538252.tar.gz rails-759e797c1d677d0695885dc959d6ebaecc538252.tar.bz2 rails-759e797c1d677d0695885dc959d6ebaecc538252.zip |
Revert "Change with start of translation in internationalization, this time with pt_br."
This reverts commit 09682e9e7328b1c1466ae87af08f1785a0b5d7e3.
Conflicts:
guides/source/en/association_basics.md
REASON: Translation work can not be done in the docrails repository
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 |