Skip to content

Commit

Permalink
Localization for PermissionCheckboxSetField
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Sep 28, 2012
1 parent 07bc75c commit b75c4b8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions security/PermissionCheckboxSetField.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,19 @@ public function Field($properties = array()) {
}
}
if($this->readonly) {
return "<ul id=\"{$this->id()}\" class=\"optionset checkboxsetfield{$this->extraClass()}\">\n<li class=\"help\">Assigning groups to this user will adjust the permissions they have. See the groups section for details of permissions on individual groups.</li>$options</ul>\n";
return "<ul id=\"{$this->id()}\" class=\"optionset checkboxsetfield{$this->extraClass()}\">\n" .
"<li class=\"help\">" .
_t(
'Permissions.UserPermissionsIntro',
'Assigning groups to this user will adjust the permissions they have. See the groups section for details of permissions on individual groups.'
) .
"</li>" .
$options .
"</ul>\n";
} else {
return "<ul id=\"{$this->id()}\" class=\"optionset checkboxsetfield{$this->extraClass()}\">\n$options</ul>\n";
return "<ul id=\"{$this->id()}\" class=\"optionset checkboxsetfield{$this->extraClass()}\">\n" .
$options .
"</ul>\n";
}
}

Expand Down

0 comments on commit b75c4b8

Please sign in to comment.