comparison config/initializers/10-patches.rb @ 38:33d69fee1d99 cannam

* Merge SVN update from default branch
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:41:40 +0000
parents 94944d00e43c
children af80e5618e9b
comparison
equal deleted inserted replaced
29:192d132064a5 38:33d69fee1d99
76 end 76 end
77 end 77 end
78 end 78 end
79 79
80 ActionMailer::Base.send :include, AsynchronousMailer 80 ActionMailer::Base.send :include, AsynchronousMailer
81
82 # TODO: Hack to support i18n 4.x on Rails 2.3.5. Remove post 2.3.6.
83 # See http://www.redmine.org/issues/6428 and http://www.redmine.org/issues/5608
84 module I18n
85 module Backend
86 module Base
87 def warn_syntax_deprecation!(*args)
88 return if @skip_syntax_deprecation
89 warn "The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.\nDowngrade your i18n gem to 0.3.7 (everything above must be deinstalled) to remove this warning, see http://www.redmine.org/issues/5608 for more information."
90 @skip_syntax_deprecation = true
91 end
92 end
93 end
94 end