diff options
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] |