mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 20:59:23 +02:00
Fixed PermissionRole field localization
This commit is contained in:
parent
ea9041df54
commit
71bbcfc66f
@ -62,4 +62,16 @@ class PermissionRole extends DataObject {
|
|||||||
$code->delete();
|
$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