Jump to:

1999 Posts in 1421 Topics by 613 members

Form Questions

SilverStripe Forums » Form Questions » (solved)Translation in ContactPage please help

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

Page: 1
Go to End
Author Topic: 635 Views
  • Webdoc
    Avatar
    Community Member
    332 Posts

    (solved)Translation in ContactPage please help Link to this post

    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:';

    635 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.