Skip to content
This repository

small change in method documetation #2206

Closed
wants to merge 1 commit into from

2 participants

Ignazio Mostallino Santiago Pastorino
Ignazio Mostallino
gnagno commented July 23, 2011

There was a small error in the documentation for the method translate:
the value returned for a missing translation key :"blog.post.title" is not:

``` Title


but actually it is: 
```   <span class="translation_missing" title="translation missing: en.blog.post.title">Title</span>

I just changed the doc.

Gnagno

Santiago Pastorino
Owner

You can push API changes directly to docrails

Santiago Pastorino spastorino closed this July 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jul 23, 2011
Ignazio Mostallino now the doc reflects the value returned for a missing translation a37b315
This page is out of date. Refresh to see the latest.
2  actionpack/lib/action_view/helpers/translation_helper.rb
@@ -25,7 +25,7 @@ module TranslationHelper
25 25
       #   * a titleized version of the last key segment as a text.
26 26
       #
27 27
       # E.g. the value returned for a missing translation key :"blog.post.title" will be
28  
-      # <span class="translation_missing" title="translation missing: blog.post.title">Title</span>.
  28
+      # <span class="translation_missing" title="translation missing: en.blog.post.title">Title</span>.
29 29
       # This way your views will display rather reasonable strings but it will still
30 30
       # be easy to spot missing translations.
31 31
       #
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.