summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-18 17:41:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-18 17:41:31 +0000
commit3739810afa3545e6747a9111185dc8808fff6078 (patch)
treeacc4a1312a72a2f3f071161091170508c6443cbd /config/initializers
parentf36b3fff60473dec197f17f632213785a6982382 (diff)
downloadredmine-3739810afa3545e6747a9111185dc8808fff6078.tar.gz
redmine-3739810afa3545e6747a9111185dc8808fff6078.zip
Adds a custom i18n backend that lazily loads translations files.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10843 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/30-redmine.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb
index 11a248959..1018ca18c 100644
--- a/config/initializers/30-redmine.rb
+++ b/config/initializers/30-redmine.rb
@@ -1,6 +1,5 @@
I18n.default_locale = 'en'
-# Adds fallback to default locale for untranslated strings
-I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
+I18n.backend = Redmine::I18n::Backend.new
require 'redmine'