Forum: Ruby on Rails Localization of Helper Tags

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Zack Hubert (Guest)
on 2006-05-27 07:29
(Received via mailing list)
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.


Thomas F. (Guest)
on 2006-05-27 12:25
(Received via mailing list)
You probably want:

<%= submit_tag _('Stuff in English') %>


Am 27.05.2006 um 05:26 schrieb Zack Hubert:
This topic is locked and can not be replied to.