From: Yu Co Date: 2006-10-05T17:27:47+09:00 Subject: Re: Multilanguage support in select box Hi Pit, thanks for the answer but unfortunately it didn't work. The select box shows "Mr" and "Ms" instead of "Herr" and "Frau" Pit Capitain wrote: > Yu Co schrieb: >> Then I want to import these declarations in my rhtml file >> >> "<%=select "customer", "salutation", [ _ 'Mr' , _ 'Ms' ] %>" >> Unfortunately I get a SyntaxError. If I change this line to >> "<%=select "customer", "salutation", [ _ 'Mr' ] %>" >> Then it works fine. > > You have to add parentheses to tell Ruby where the argument lists end: > > <%= select "customer", "salutation", [ _('Mr'), _('Ms') ] %> > > Regards, > Pit -- Posted via http://www.ruby-forum.com/.