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.

Data Model Questions

translate content from DataObjects (SS3.0.2)


Reply

365 Views

Avatar
dh

5 October 2012 at 9:01pm (Last edited: 6 October 2012 3:56am), Community Member, 13 Posts

(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?