Skip to content

Commit

Permalink
Fixed PermissionRole field localization
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Sep 11, 2012
1 parent ea9041d commit 71bbcfc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions security/PermissionRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 71bbcfc

Please sign in to comment.