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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
StuFF mc (.com) (Guest)
on 2011-07-31 20:14
(Received via mailing list)

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, ...
StuFF mc (.com) (Guest)
on 2011-07-31 21: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
Henrik -. (Guest)
on 2011-07-31 21: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.