summaryrefslogtreecommitdiff
path: root/actions/grantrole.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-04-10 00:58:57 +0200
committerBrion Vibber <brion@pobox.com>2010-04-09 16:11:20 -0700
commit166c1edba97d065d0fd424621305fd016e644c43 (patch)
tree8c94df27e33e056c263023f012b73c602f61d529 /actions/grantrole.php
parent5c6c9b6f5f40b50570505a366a858e83db9bb2ec (diff)
Fix inconsistencies in clientError() messages
* use correct punctuation * single quotes when replace was possible * wording updated when needed
Diffstat (limited to 'actions/grantrole.php')
-rw-r--r--actions/grantrole.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/grantrole.php b/actions/grantrole.php
index cd6bd4d79..b8b23d02e 100644
--- a/actions/grantrole.php
+++ b/actions/grantrole.php
@@ -59,11 +59,11 @@ class GrantRoleAction extends ProfileFormAction
$this->role = $this->arg('role');
if (!Profile_role::isValid($this->role)) {
- $this->clientError(_("Invalid role."));
+ $this->clientError(_('Invalid role.'));
return false;
}
if (!Profile_role::isSettable($this->role)) {
- $this->clientError(_("This role is reserved and cannot be set."));
+ $this->clientError(_('This role is reserved and cannot be set.'));
return false;
}
@@ -72,14 +72,14 @@ class GrantRoleAction extends ProfileFormAction
assert(!empty($cur)); // checked by parent
if (!$cur->hasRight(Right::GRANTROLE)) {
- $this->clientError(_("You cannot grant user roles on this site."));
+ $this->clientError(_('You cannot grant user roles on this site.'));
return false;
}
assert(!empty($this->profile)); // checked by parent
if ($this->profile->hasRole($this->role)) {
- $this->clientError(_("User already has this role."));
+ $this->clientError(_('User already has this role.'));
return false;
}