diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-12-16 18:11:32 +0100 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-12-16 18:11:32 +0100 |
commit | 76f87802a2047754db47fa699fda966dbb6763ba (patch) | |
tree | 36a3e34c8473f3f9d3e8ef2981e0bcc1ea539ce4 /railties | |
parent | d6e6754ebe2a061d37b28262dcb0d784d913eaf8 (diff) | |
download | rails-76f87802a2047754db47fa699fda966dbb6763ba.tar.gz rails-76f87802a2047754db47fa699fda966dbb6763ba.tar.bz2 rails-76f87802a2047754db47fa699fda966dbb6763ba.zip |
i18n guide: add note about #t and #l aliases
Diffstat (limited to 'railties')
-rw-r--r-- | railties/doc/guides/source/i18n.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/doc/guides/source/i18n.txt b/railties/doc/guides/source/i18n.txt index d2cfbdad5d..ba3cc42a5b 100644 --- a/railties/doc/guides/source/i18n.txt +++ b/railties/doc/guides/source/i18n.txt @@ -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] |