forked from farend/redmine_message_customize
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
20 lines (17 loc) · 1 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true
require File.expand_path('../lib/message_customize/locale', __FILE__)
require File.expand_path('../lib/message_customize/hooks', __FILE__)
require File.expand_path('../lib/message_customize/application_controller_patch', __FILE__)
p = Redmine::Plugin.register :redmine_message_customize do
name 'Redmine message customize plugin'
version '1.1.0'
description 'This is a plugin that allows messages in Redmine to be overwritten from the admin view'
author 'Far End Technologies Corporation'
url 'https://github.com/farend/redmine_message_customize'
author_url 'https://github.com/farend'
settings default: { custom_messages: {} }
menu :admin_menu, :custom_messages, { controller: 'custom_message_settings', action: 'edit' },
caption: :label_custom_messages, html: { class: 'icon' }, icon: 'edit'
requires_redmine version_or_higher: '6.0'
end
Rails.application.config.i18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', 'custom_messages', '*.rb'))