Project

General

Profile

Patch #12753 ยป 0001-Update-config.i18n.load_path-for-plugin-locales.patch

Takeshi Yaegashi, 2013-01-06 10:37

View differences:

lib/redmine/plugin.rb
# 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')
    (1-1/1)