diff options
author | Iain Beeston <iain.beeston@gmail.com> | 2013-08-03 21:39:46 +1000 |
---|---|---|
committer | Iain Beeston <iain.beeston@gmail.com> | 2013-08-03 21:39:46 +1000 |
commit | 78f953dff86fdd5f857a1dc9de6717c069b0d12f (patch) | |
tree | 375af41bf9f53f8610770a70fbb1851496f2d224 /guides/source | |
parent | 71f512646a447e4b15c613d35842728e6b8dddb1 (diff) | |
download | rails-78f953dff86fdd5f857a1dc9de6717c069b0d12f.tar.gz rails-78f953dff86fdd5f857a1dc9de6717c069b0d12f.tar.bz2 rails-78f953dff86fdd5f857a1dc9de6717c069b0d12f.zip |
Updated the guide to say that the localisation file for validation messages is in activemodel, not activerecord
Diffstat (limited to 'guides/source')
-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 046c7543f3..facfb96d98 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -97,7 +97,7 @@ en: hello: "Hello world" ``` -This means, that in the `:en` locale, the key _hello_ will map to the _Hello world_ string. Every string inside Rails is internationalized in this way, see for instance Active Record validation messages in the [`activerecord/lib/active_record/locale/en.yml`](https://github.com/rails/rails/blob/master/activerecord/lib/active_record/locale/en.yml) file or time and date formats in the [`activesupport/lib/active_support/locale/en.yml`](https://github.com/rails/rails/blob/master/activesupport/lib/active_support/locale/en.yml) file. You can use YAML or standard Ruby Hashes to store translations in the default (Simple) backend. +This means, that in the `:en` locale, the key _hello_ will map to the _Hello world_ string. Every string inside Rails is internationalized in this way, see for instance Active Model validation messages in the [`activemodel/lib/active_model/locale/en.yml`](https://github.com/rails/rails/blob/master/activemodel/lib/active_model/locale/en.yml) file or time and date formats in the [`activesupport/lib/active_support/locale/en.yml`](https://github.com/rails/rails/blob/master/activesupport/lib/active_support/locale/en.yml) file. You can use YAML or standard Ruby Hashes to store translations in the default (Simple) backend. The I18n library will use **English** as a **default locale**, i.e. if you don't set a different locale, `:en` will be used for looking up translations. |