mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Merge pull request #12 from creamarketing/title-description-translatable
ENHANCEMENT: Made title, cmstitle and description on widgets translatable
This commit is contained in:
commit
cc3aa49f9f
@ -65,15 +65,15 @@ class Widget extends DataObject {
|
||||
}
|
||||
|
||||
function Title() {
|
||||
return Object::get_static($this->class, 'title');
|
||||
return _t($this->class.'.TITLE', Object::get_static($this->class, 'title'));
|
||||
}
|
||||
|
||||
function CMSTitle() {
|
||||
return Object::get_static($this->class, 'cmsTitle');
|
||||
return _t($this->class.'.CMSTITLE', Object::get_static($this->class, 'cmsTitle'));
|
||||
}
|
||||
|
||||
function Description() {
|
||||
return Object::get_static($this->class, 'description');
|
||||
return _t($this->class.'.DESCRIPTION', Object::get_static($this->class, 'description'));
|
||||
}
|
||||
|
||||
function DescriptionSegment() {
|
||||
|
Loading…
Reference in New Issue
Block a user