Forum: Ruby on Rails Localization of Helper Tags

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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.

Thanks!

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

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

-Thomas

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