diff options
Diffstat (limited to 'guides/rails_guides/markdown.rb')
-rw-r--r-- | guides/rails_guides/markdown.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/guides/rails_guides/markdown.rb b/guides/rails_guides/markdown.rb index 650489e6cb..343e74f776 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="" />Chapters</h3> + <h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />#{language_chapter}</h3> #{@index} </div> INDEX @@ -134,6 +134,15 @@ 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 |