478d635109def1232a790c60319ac1.
This commit is contained in:
z9hang 2015-03-10 10:47:41 +08:00
commit 7e34ce48bf
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ module Redmine #:nodoc:
# Adds plugin locales if any # Adds plugin locales if any
# YAML translation files should be found under <plugin>/config/locales/ # YAML translation files should be found under <plugin>/config/locales/
::I18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', '*.yml')) ::I18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', '*.yml'))
::I18n.load_path += Dir.glob(File.join(Rails.root, 'config', 'locales', '**','*.yml'))
# Prepends the app/views directory of the plugin to the view path # Prepends the app/views directory of the plugin to the view path
view_path = File.join(p.directory, 'app', 'views') view_path = File.join(p.directory, 'app', 'views')
if File.directory?(view_path) if File.directory?(view_path)