We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef5e3c commit 66ff949Copy full SHA for 66ff949
lib/message_customize/hooks.rb
@@ -4,7 +4,7 @@ module MessageCustomize
4
class Hooks < Redmine::Hook::ViewListener
5
# The language file for redmine_message_customize should be given the highest priority because it overrides other plugin languages.
6
# Set the language file to be loaded with the highest priority after all plugins have finished loading.
7
- def after_plugins_loaded()
+ def after_plugins_loaded(_context)
8
p = Redmine::Plugin.find(:redmine_message_customize)
9
custom_locales = Dir.glob(File.join(p.directory, 'config', 'locales', 'custom_messages', '*.rb'))
10
Rails.application.config.i18n.load_path = (Rails.application.config.i18n.load_path - custom_locales + custom_locales)
0 commit comments