1779 Posts in 582 Topics by 556 members
|Go to End|
22 January 2010 at 2:56am
How can I use multilanguage feature like <% _t('Events.Upcoming_Events',"Upcoming Events") %> into TextField,HeaderField,ecc code?
$fields = new FieldSet(
new FieldGroup (
new HeaderField('Personal Information', 3),
new TextField('FirstName', 'Nome / First Name', $member->FirstName),
22 January 2010 at 4:29pm
You can use the same syntax that you use from templates - the _t function works in both.
new TextField('FirstName', _t('MyForm.FIRSTNAME', 'First Name'))
|Go to Top|