diff options
author | Antonio Tapiador del Dujo <atapiador@dit.upm.es> | 2009-03-24 14:49:47 +0100 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-30 13:36:22 -0700 |
commit | cf4846c6ae991143afaef987a63c3ad9a3a2546b (patch) | |
tree | 79dcc28149ac974aab94b48ae429aa6071d39afb /railties/test/fixtures/plugins/engines/engine/config/locales/en.yml | |
parent | 0efedf2a30a12cdaa261556e3684c630690afe0f (diff) | |
download | rails-cf4846c6ae991143afaef987a63c3ad9a3a2546b.tar.gz rails-cf4846c6ae991143afaef987a63c3ad9a3a2546b.tar.bz2 rails-cf4846c6ae991143afaef987a63c3ad9a3a2546b.zip |
I18n support for plugins
Rails will now automatically add locale files found in any engine's locale
directory to the I18n.load_path (i.e. files that match the glob pattern
"config/locales/**/*.{rb,yml}" relative to engine directories).
[#2325 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties/test/fixtures/plugins/engines/engine/config/locales/en.yml')
-rw-r--r-- | railties/test/fixtures/plugins/engines/engine/config/locales/en.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/fixtures/plugins/engines/engine/config/locales/en.yml b/railties/test/fixtures/plugins/engines/engine/config/locales/en.yml new file mode 100644 index 0000000000..641a7e035c --- /dev/null +++ b/railties/test/fixtures/plugins/engines/engine/config/locales/en.yml @@ -0,0 +1,2 @@ +en: + hello: "Hello from Engine" |