Merge pull request #12 from creamarketing/title-description-translatable

ENHANCEMENT: Made title, cmstitle and description on widgets translatable
This commit is contained in:
Stig Lindqvist 2012-09-30 13:08:18 -07:00
commit cc3aa49f9f
1 changed files with 3 additions and 3 deletions

View File

@ -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() {