Localization of Helper Tags


I’m using the Localization plugin and I’m having trouble figuring out
how to localize the values of a helper tag. For instance, how do I
get Localization to work on this tag?

<%= submit_tag ‘Stuff in English’ %>

I assumed it would be

<%=_ submit_tag ‘Stuff in English’ %>

But that doesn’t work. I’ve tried a number of permutations but I’m
obviously missing something basic.




You probably want:

<%= submit_tag _(‘Stuff in English’) %>


Am 27.05.2006 um 05:26 schrieb Zack Hubert: