mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed PermissionRole field localization
This commit is contained in:
parent
f5ff607a0a
commit
5eca675146
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user