diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-08-16 07:03:16 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-16 07:03:16 -0300 |
commit | 82ec6b36065e91fe0ec5a87f9419840618ce2c5d (patch) | |
tree | 922b8e1703678543e43d1dcec5e853f0d0a0bd15 /guides/source/i18n.md | |
parent | 05a35b5b636d545a670e256121d32b9903a756ec (diff) | |
parent | 97b5341d6a63c5f730930f5fc021fb4eb15fcfc5 (diff) | |
download | rails-82ec6b36065e91fe0ec5a87f9419840618ce2c5d.tar.gz rails-82ec6b36065e91fe0ec5a87f9419840618ce2c5d.tar.bz2 rails-82ec6b36065e91fe0ec5a87f9419840618ce2c5d.zip |
Merge pull request #26061 from malclocke/specify_ar_message_interpolation_names_in_i18n_guide
List names of error interpolation variables.
Diffstat (limited to 'guides/source/i18n.md')
-rw-r--r-- | guides/source/i18n.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md index 850f0def03..e623f8cf8a 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -866,7 +866,7 @@ This way you can provide special translations for various error messages at diff #### Error Message Interpolation -The translated model name, translated attribute name, and value are always available for interpolation. +The translated model name, translated attribute name, and value are always available for interpolation as `model`, `attribute` and `value` respectively. So, for example, instead of the default error message `"cannot be blank"` you could use the attribute name like this : `"Please fill in your %{attribute}"`. |