summaryrefslogtreecommitdiffstats
path: root/config/boot.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-18 13:53:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-18 13:53:34 +0000
commitfdaf58765269f448e7e0e900afec3cc369d3a00e (patch)
tree6b5841cdd705565eac89feadfdf6a68a03b07069 /config/boot.rb
parent142b837271d841d91cacf29711208cff9e8e2264 (diff)
downloadredmine-fdaf58765269f448e7e0e900afec3cc369d3a00e.tar.gz
redmine-fdaf58765269f448e7e0e900afec3cc369d3a00e.zip
Merged r4516 from trunk (i18n 0.4.2 gem is now required: 'gem install -v=0.4.2 i18n', see #7013).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4532 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/boot.rb')
-rw-r--r--config/boot.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
index dd5e3b691..95bd6b885 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -106,5 +106,17 @@ module Rails
end
end
+# TODO: Workaround for #7013 to be removed for 1.2.0
+# Loads i18n 0.4.2 before Rails loads any more recent gem
+# 0.5.0 is not compatible with the old interpolation syntax
+# Plugins will have to migrate to the new syntax for 1.2.0
+require 'rubygems'
+begin
+ gem 'i18n', '0.4.2'
+rescue Gem::LoadError => load_error
+ $stderr.puts %(Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`)
+ exit 1
+end
+
# All that for this:
Rails.boot!