Commit 047d0710a7434afe643b8ca2f1a41e855af80b7e
Exists in
master
and in
29 other branches
Merge branch 'plugins-i18n' into 'master'
Load locales inside plugins directory See merge request !338
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
config/application.rb
@@ -115,6 +115,8 @@ module Noosfero | @@ -115,6 +115,8 @@ module Noosfero | ||
115 | :key => '_noosfero_session', | 115 | :key => '_noosfero_session', |
116 | } | 116 | } |
117 | 117 | ||
118 | + config.i18n.load_path += Dir.glob "#{Rails.root}/{baseplugins,config/plugins/*}/locales/*.{rb,yml}" | ||
119 | + | ||
118 | Noosfero::Plugin.setup(config) | 120 | Noosfero::Plugin.setup(config) |
119 | 121 | ||
120 | end | 122 | end |