2010/8/4 Céd' <[email protected]>

> Hi everyone,
>
> I am facing a weird issue with the translation helper.
>
> When i try to display a localized string with 4 variables, here what i
> get :
>
> my_string: "We successfully add {{count}} credits available from
> {{start_date}} to {{end_date}}. Total : {{total}} EUR"
>
> t("my_string", :count => 3, :start_date => "2010-01-01", :end_date =>
> "2010-12-31", :total => 12)
>
> => "We successfully add 3 credits available from 2010-01-01 to
> 2010-12-31. Total : {{total}} EUR"
>
> The point is the fourth (total) variable is not interpreted. I tried
> to change my variables' order but it didn't change anything.
>
> Thanks per advance for your help
>
Are you in Rails 3. If yes, you can try to change {{}} by this {%%}

>
> --
> 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]<rails-i18n%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rails-i18n?hl=en.
>
>

-- 
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.

Reply via email to