Update config.i18n.load_path for plugin-supplied locales
With Rails 3
Redmine::Plugin.register should update
Rails.application.config.i18n.load_path for plugin-supplied locales to allow them to override system locales.
I18n.load_path is overriden with system locales by an
after_initialize hook in
active_support/i18n_railtie.rb, thus currently plugins like https://github.com/edavis10/redmine_language_change won't work.
The attached patch is against 2.1-stable branch.
Updated by Jean-Philippe Lang about 10 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.4.3
redmine_language_change plugin works fine for me without the patch applied but it's committed in r12482 anyway as it seems safer to use Rails config instead.