diff options
author | Karel Minarik <karmi@karmi.cz> | 2009-02-02 12:15:07 +0100 |
---|---|---|
committer | Karel Minarik <karmi@karmi.cz> | 2009-02-02 12:15:07 +0100 |
commit | 074b50107359def427823bc8051f77e59a1da212 (patch) | |
tree | 1a5212ca3ea418582097eff2fbf167169a048f1d /railties/doc/guides/source | |
parent | 8cdfca1b5dc54fbdafd2ad5a3e9e83b6083d8b36 (diff) | |
download | rails-074b50107359def427823bc8051f77e59a1da212.tar.gz rails-074b50107359def427823bc8051f77e59a1da212.tar.bz2 rails-074b50107359def427823bc8051f77e59a1da212.zip |
I18n guide: Correction -- Invalid .rb dictionaries will crash on first request, not on app startup, due to lazy loading. Thanks @darktatka.
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 90072d7087..19393f4527 100644 --- a/railties/doc/guides/source/i18n.txt +++ b/railties/doc/guides/source/i18n.txt @@ -403,7 +403,7 @@ image:images/i18n/demo_translated_pirate.png[rails i18n demo translated to pirat NOTE: You need to restart the server when you add new locale files. -You may use YAML (+.yml+) or plain Ruby (+.rb+) files for storing your translations in SimpleStore. YAML is the preffered option among Rails developers, has one big disadvantage, though. YAML is very sensitive to whitespace and special characters, so the application may not load your dictionary properly. Ruby files will crash your application during start-up time, so you may easily find what's wrong. (If you encounter any "weird issues" with YAML dictionaries, try putting the relevant portion of your dictionary into Ruby file.) +You may use YAML (+.yml+) or plain Ruby (+.rb+) files for storing your translations in SimpleStore. YAML is the preffered option among Rails developers, has one big disadvantage, though. YAML is very sensitive to whitespace and special characters, so the application may not load your dictionary properly. Ruby files will crash your application on first request, so you may easily find what's wrong. (If you encounter any "weird issues" with YAML dictionaries, try putting the relevant portion of your dictionary into Ruby file.) === Adding Date/Time formats |