diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-05 14:46:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-05 14:46:22 +0000 |
commit | 1f5086258616239fd7998012f6efab685089fca5 (patch) | |
tree | ec6bfe7712d7ffe165fbe117945122f90a1b7862 /lib/redmine/plugin.rb | |
parent | 77ac3b7891d40196b04f41af4da357a95b90d149 (diff) | |
download | redmine-1f5086258616239fd7998012f6efab685089fca5.tar.gz redmine-1f5086258616239fd7998012f6efab685089fca5.zip |
Use Rails.application.config.i18n.load_path for adding plugin locales (#12753).
Patch by Takeshi Yaegashi.
git-svn-id: http://svn.redmine.org/redmine/trunk@12482 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index ea61cef7e..2cd8e5646 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -79,7 +79,7 @@ module Redmine #:nodoc: # Adds plugin locales if any # YAML translation files should be found under <plugin>/config/locales/ - ::I18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', '*.yml')) + Rails.application.config.i18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', '*.yml')) # Prepends the app/views directory of the plugin to the view path view_path = File.join(p.directory, 'app', 'views') |