summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-01-10 18:25:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-01-10 18:25:12 +0000
commit88727bf070ed11b73c75a2510143c15c685254a0 (patch)
tree157c808c98e09c9eb27a9d1e9198c5fe65c9952f /config/initializers
parentbebde1596cf51be7064f9d4a569f54b0cdc1c7cf (diff)
downloadredmine-88727bf070ed11b73c75a2510143c15c685254a0.tar.gz
redmine-88727bf070ed11b73c75a2510143c15c685254a0.zip
Adds fallback to 'en' locale for untranslated strings (#5518).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4679 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/30-redmine.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb
index cd5b20b70..708dcd655 100644
--- a/config/initializers/30-redmine.rb
+++ b/config/initializers/30-redmine.rb
@@ -1,3 +1,5 @@
I18n.default_locale = 'en'
+# Adds fallback to default locale for untranslated strings
+I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
require 'redmine'