Skip to content

Commit

Permalink
i18n guide: add note about #t and #l aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Dec 16, 2008
1 parent d6e6754 commit 76f8780
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions railties/doc/guides/source/i18n.txt
Expand Up @@ -29,6 +29,14 @@ translate # lookup translations
localize # localize Date and Time objects to local formats
-------------------------------------------------------

These have the aliases #t and #l so you can use them like this:

[source, ruby]
-------------------------------------------------------
I18n.t 'store.title'
I18n.l Time.now
-------------------------------------------------------

There are also attribute readers and writers for the following attributes:

[source, ruby]
Expand Down

0 comments on commit 76f8780

Please sign in to comment.