Jump to:

2012 Posts in 1438 Topics by 621 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: 659 Views
  • Webdoc
    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:';

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.