Permalink
Browse files

Fixed PermissionRole field localization

  • Loading branch information...
1 parent f5ff607 commit 5eca6751460cfef0c0cb5b03d7a41958cbe6c1ce @chillu chillu committed Sep 11, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 security/PermissionRole.php
@@ -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;
+ }
}

0 comments on commit 5eca675

Please sign in to comment.