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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

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

(solved)Translation in ContactPage please help


Go to End


869 Views

Avatar
Webdoc

Community Member, 349 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:';