2009-02-21 11:04:50 +00:00
|
|
|
I18n.default_locale = 'en'
|
2011-01-10 18:25:12 +00:00
|
|
|
# Adds fallback to default locale for untranslated strings
|
|
|
|
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
2008-07-04 17:58:14 +00:00
|
|
|
|
|
|
|
require 'redmine'
|
2012-04-25 17:17:49 +00:00
|
|
|
|
2012-04-28 12:00:45 +00:00
|
|
|
# Load the secret token from the Redmine configuration file
|
|
|
|
secret = Redmine::Configuration['secret_token']
|
|
|
|
if secret.present?
|
|
|
|
RedmineApp::Application.config.secret_token = secret
|
|
|
|
end
|
|
|
|
|
2012-04-25 17:17:49 +00:00
|
|
|
Redmine::Plugin.load
|
2012-04-28 11:07:59 +00:00
|
|
|
unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false
|
|
|
|
Redmine::Plugin.mirror_assets
|
|
|
|
end
|