Fixed PermissionRole field localization

This commit is contained in:
Ingo Schommer 2012-09-11 13:53:09 +02:00
parent f5ff607a0a
commit 5eca675146

View File

@ -62,4 +62,16 @@ class PermissionRole extends DataObject {
$code->delete();
}
}
function fieldLabels($includerelations = true) {
$labels = parent::fieldLabels($includerelations);
$labels['Title'] = _t('PermissionRole.Title', 'Title');
$labels['OnlyAdminCanApply'] = _t(
'PermissionRole.OnlyAdminCanApply',
'Only admin can apply',
'Checkbox to limit which user can apply this role'
);
return $labels;
}
}