Hi there,
I have a problem with the replacement of piece of translations set into
the yml file with dynamic content.
Like, I have this is my view :
<h1><%= I18n.t :home_welcome2, :test=>"plop" %></h1>
and here is my en.yml :
en:
home_welcome2: "Welcome to my site {{test}}"
Test is not replaced by "plop" anymore, it just displays plainly
{{test}}. It USED to work perfect (this site is under dev) but I really
can't find out what broke it.
- removing everything from the en.yml file BUT the two lines above
doesn't help.
- remove everything in the view but this line, as a test, doesn't help
- tried to replace {{test}} by #{test} but it doesn't help either
(anyway, {{test}} was working before)
Has anyone an idea about what could conflict or make the translation
files not accept parameters ?
This site uses :
Ruby 1.8.7
Rails 2.5.8
I18n gem seems to be 0.5
Thanks to anyone who can help about this :S
By the way, happy new year everyone :)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.