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.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

(solved)Translation in ContactPage please help


Go to End
Reply


761 Views

Avatar
Webdoc

Community Member, 346 Posts

11 March 2011 at 12:24am

Translating so in ContactPage.php
// Create fields
$fields = new FieldSet(
new TextField('Name',"_t('ContactPage.NAME');"),
new EmailField('Email',"_t('ContactPage.EMAIL');"),
new TextareaField('Comments',"_t('ContactPage.COMMENT');")
);

// Create action
$actions = new FieldSet(
new FormAction('SendContactForm', "_t('ContactPage.SEND');")
);

using this in lang file:
$lang['et_EE']['ContactPage']['NAME'] = 'Teie nimi:';