Mercurial > hg > soundsoftware-site
diff config/initializers/.svn/text-base/10-patches.rb.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 513646585e45 |
children | af80e5618e9b |
line wrap: on
line diff
--- a/config/initializers/.svn/text-base/10-patches.rb.svn-base Fri Sep 24 14:06:04 2010 +0100 +++ b/config/initializers/.svn/text-base/10-patches.rb.svn-base Fri Nov 19 13:24:41 2010 +0000 @@ -78,3 +78,17 @@ end ActionMailer::Base.send :include, AsynchronousMailer + +# TODO: Hack to support i18n 4.x on Rails 2.3.5. Remove post 2.3.6. +# See http://www.redmine.org/issues/6428 and http://www.redmine.org/issues/5608 +module I18n + module Backend + module Base + def warn_syntax_deprecation!(*args) + return if @skip_syntax_deprecation + 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." + @skip_syntax_deprecation = true + end + end + end +end