Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed PermissionRole field localization

  • Loading branch information...
commit 71bbcfc66f460755169947f3920a2cdf1d89f48b 1 parent ea9041d
Ingo Schommer chillu authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 security/PermissionRole.php
12 security/PermissionRole.php
View
@@ -62,4 +62,16 @@ function onAfterDelete() {
$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;
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.