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 /

(solved)Translation in ContactPage please help


Reply


694 Views

Avatar
Webdoc

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