The {{key}} interpolation syntax in I18n messages is deprecated. Use% {key} instead

advertisements

I am running ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.3.2] with Rails 2.3.8 and I have to use that version. When I run 'rake test' I get

The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.

There was a bug but now should be solved: https://rails.lighthouseapp.com/projects/8994/tickets/4525-favor-in-all-code-instead-of-deprecated-as-interpolation-syntax-for-i18n

I have tried i18n gem with versions 0.4.1, 0.4.0 and 0.4.0-beta1 without luck

Any idea?


I downgraded i18n to 0.3.7 to get rid of the error. Apparently you can also install i18n from its rails3 branch (should work on 2.3.8 as well).