Fixed PermissionRole field localization

This commit is contained in:
Ingo Schommer 2012-09-11 13:53:09 +02:00
parent ea9041df54
commit 71bbcfc66f

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;
}
}