Forum: Rails I18n How to have both {{ and %{ placeholders replaced?

F86e3f9f034327764bbe92381d57c24c?d=identicon&s=25 StuFF mc (.com) (Guest)
on 2011-07-31 18:14
(Received via mailing list)
Hi,

I'm working on a Rails app I didn't touched since a year ;) It's a
2.3.8 app, and my first surprise was to see things like

    {{count}} errors prohibited this {{model}} from being saved
    There were problems with the following fields:
    {{attribute}} {{message}}

Apparently {{ aren't replaced anymore since %{ is the newer syntax.
Turns out I used %{ as well, probably because I red about having to
use it as the "new standard", but most of those {{ are from Rails
itself. Is there an option to have both replaced or should I use an
older gem, or, or or, ...
F86e3f9f034327764bbe92381d57c24c?d=identicon&s=25 StuFF mc (.com) (Guest)
on 2011-07-31 19:05
(Received via mailing list)
Folks, FYI... Using 2.3.11 instead of 2.3.8 seems to solve the
problem. What's also totally unclear for me is *how* the i18n gem is
"required". I removed it, and it still works. One of my idea was to
use and old i18n gem, but I didn't even have to do so, as using Rails
2.3.11 seems to fix the problem.

I need to mention that it's not a "production" app, it's an app I have
to have running in the state in which it was a year ago, so it's
really not a bad thing (actually a good one) if I'm running with an
old i18n gem - or for that matter with rails 2



On Jul 31, 6:13pm, "StuFF mc (.com)" <mc
4a551074ddba4460f95d011c47190d0e?d=identicon&s=25 Henrik --- (malesca)
on 2011-07-31 19:11
(Received via mailing list)
As I understand it, i18n is bundled in Rails, but if you have a newer
i18n gem outside Rails, it picks that one up instead.

On Sun, Jul 31, 2011 at 19:04, StuFF mc (.com)
This topic is locked and can not be replied to.