Jump to:

3433 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » translate content from DataObjects (SS3.0.2)

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

Page: 1
Go to End
Author Topic: 347 Views
  • dh
    Avatar
    Community Member
    13 Posts

    translate content from DataObjects (SS3.0.2) Link to this post

    (SS3.0.2)
    hi,
    i can't use the _t() function in DataObjects.
    i tried this:

    class ImageGalleryObject extends DataObject {

    static public $singular_name = _t('ImageGalleryObject.BUTTON', 'Picture');
    static public $plural_name = _t('ImageGalleryObject.BUTTONS', 'Pictures');

    ...

    }


    But it doesn't work. i get a 'Internal Server Error'.

    the translations are right set.

    Where is the Problem?

    347 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.