diff options
author | Rodrigo Martins <rodrigo@rrmartins.com> | 2012-10-17 03:30:45 -0300 |
---|---|---|
committer | Rodrigo Martins <rodrigo@rrmartins.com> | 2012-10-17 03:30:45 -0300 |
commit | 09682e9e7328b1c1466ae87af08f1785a0b5d7e3 (patch) | |
tree | 68b9eefb2bacebb59b9d2054a356c7eacda510bf /guides/rails_guides/markdown.rb | |
parent | d761eab42b5f0dc4a819c271f16579f84724c3ae (diff) | |
download | rails-09682e9e7328b1c1466ae87af08f1785a0b5d7e3.tar.gz rails-09682e9e7328b1c1466ae87af08f1785a0b5d7e3.tar.bz2 rails-09682e9e7328b1c1466ae87af08f1785a0b5d7e3.zip |
Change with start of translation in internationalization, this time with pt_br.
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 |