Skip to content

Commit

Permalink
Note on preceding dots
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Jan 31, 2012
1 parent aa5f03f commit 6416897
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -57,6 +57,8 @@ You can access blurbs from Copycopter by using `I18n.translate`. This is also al
# Interpolation
I18n.translate("mailer.welcome", :default => "Welcome, %{name}!", :name => @user.name)

Note that using a preceding dot (such as ".welcome") will only work when calling t or translate from a view. The full key must be used from controllers and other places.

See the [I18n documentation](http://rdoc.info/github/svenfuchs/i18n/master/file/README.textile) documentation for more examples.

Deploys
Expand Down

0 comments on commit 6416897

Please sign in to comment.