Commit 289e838fe3e319b1fe05cff04c52e0d60ab3d1f9
1 parent
ffd4d09f
Exists in
master
and in
29 other branches
Load locales inside plugins' path
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 |