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!