Patch by Takeshi Yaegashi.
git-svn-id: http://svn.redmine.org/redmine/trunk@12482
e93f8b46-1217-0410-a6f0-
8f06a7374b81
# 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')