summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-05 14:46:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-05 14:46:22 +0000
commit1f5086258616239fd7998012f6efab685089fca5 (patch)
treeec6bfe7712d7ffe165fbe117945122f90a1b7862 /lib
parent77ac3b7891d40196b04f41af4da357a95b90d149 (diff)
downloadredmine-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')
-rw-r--r--lib/redmine/plugin.rb2
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')