Jump to:

3450 Posts in 1063 Topics by 738 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: 353 Views
  • dh
    Community Member
    13 Posts

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

    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?

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.