diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-12-16 15:52:02 +0100 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-12-16 15:52:02 +0100 |
commit | f388babc729174c305902be38cee01011eb0aa18 (patch) | |
tree | 2e2e520a6f24da864230ee0e20a1a597fab2a4e0 /railties/doc/guides/source | |
parent | 26b7bd941de901cb103007ebed24506bffbf6580 (diff) | |
download | rails-f388babc729174c305902be38cee01011eb0aa18.tar.gz rails-f388babc729174c305902be38cee01011eb0aa18.tar.bz2 rails-f388babc729174c305902be38cee01011eb0aa18.zip |
explain purpose of interpolation feature
Diffstat (limited to 'railties/doc/guides/source')
-rw-r--r-- | railties/doc/guides/source/i18n.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/i18n.txt b/railties/doc/guides/source/i18n.txt index de7801d53f..be8510cb12 100644 --- a/railties/doc/guides/source/i18n.txt +++ b/railties/doc/guides/source/i18n.txt @@ -263,7 +263,7 @@ I18n.t 'active_record.error_messages' === Interpolation -TODO explain what this is good for +In many cases you want to abstract your translations so that variables can be interpolated into the translation. For this reason the I18n API provides an interpolation feature. All options besides :default and :scope that are passed to #translate will be interpolated to the translation: |