Mercurial > hg > soundsoftware-site
comparison config/initializers/30-redmine.rb @ 1338:25603efa57b5
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 13:14:14 +0100 |
parents | 433d4f72a19b |
children | 261b3d9a4903 |
comparison
equal
deleted
inserted
replaced
1209:1b1138f6f55e | 1338:25603efa57b5 |
---|---|
1 I18n.default_locale = 'en' | 1 I18n.default_locale = 'en' |
2 # Adds fallback to default locale for untranslated strings | 2 I18n.backend = Redmine::I18n::Backend.new |
3 I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) | |
4 | 3 |
5 require 'redmine' | 4 require 'redmine' |
5 | |
6 # Load the secret token from the Redmine configuration file | |
7 secret = Redmine::Configuration['secret_token'] | |
8 if secret.present? | |
9 RedmineApp::Application.config.secret_token = secret | |
10 end | |
11 | |
12 Redmine::Plugin.load | |
13 unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false | |
14 Redmine::Plugin.mirror_assets | |
15 end |