Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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),
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'))