Patch #12753 ยป 0001-Update-config.i18n.load_path-for-plugin-locales.patch
| lib/redmine/plugin.rb | ||
|---|---|---|
| 76 | 76 | |
| 77 | 77 |
# Adds plugin locales if any |
| 78 | 78 |
# YAML translation files should be found under <plugin>/config/locales/ |
| 79 |
::I18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', '*.yml')) |
|
| 79 |
Rails.application.config.i18n.load_path += |
|
| 80 |
Dir.glob(File.join(p.directory, 'config', 'locales', '*.yml')) |
|
| 80 | 81 | |
| 81 | 82 |
# Prepends the app/views directory of the plugin to the view path |
| 82 | 83 |
view_path = File.join(p.directory, 'app', 'views') |