Solved it! (embarassing yourself in public is such a good motivator!)
I needed to simply do:
<%=l(:film_info_minutes, film.duration)%>
On Oct 9, 11:25 pm, phil <p...-o0Q4Q1ys/oVBDgjK7y7TUQ@public.gmane.org>
wrote:> I am trying to use a combination of gloc and sprintf on my
> multilingual website.
> If I do this:
> <%=sprintf(l(:film_info_minutes),film.duration) %>
>
> I get a compile error:
> Translation value "%d minutes" with arguments [] caused error
''too few
> arguments''
>
> but if I do:
> <%=sprintf("%d minutes",film.duration) %>
>
> it works fine. Please tell me that its possible to nest gloc with a
> sprintf! What am I doing wrong?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---