We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit bcd34a7f authored by Siebrand Mazeland's avatar Siebrand Mazeland

Add correct punctuation for client exceptions.

parent ee5479b9
...@@ -78,7 +78,7 @@ class AtompubshowmembershipAction extends ApiAuthAction ...@@ -78,7 +78,7 @@ class AtompubshowmembershipAction extends ApiAuthAction
if (empty($this->_group)) { if (empty($this->_group)) {
// TRANS: Client exception thrown when referencing a non-existing group. // TRANS: Client exception thrown when referencing a non-existing group.
throw new ClientException(_('No such group'), 404); throw new ClientException(_('No such group.'), 404);
} }
$kv = array('group_id' => $groupId, $kv = array('group_id' => $groupId,
...@@ -88,7 +88,7 @@ class AtompubshowmembershipAction extends ApiAuthAction ...@@ -88,7 +88,7 @@ class AtompubshowmembershipAction extends ApiAuthAction
if (empty($this->_membership)) { if (empty($this->_membership)) {
// TRANS: Client exception thrown when trying to show membership of a non-subscribed group // TRANS: Client exception thrown when trying to show membership of a non-subscribed group
throw new ClientException(_('Not a member'), 404); throw new ClientException(_('Not a member.'), 404);
} }
return true; return true;
...@@ -113,7 +113,7 @@ class AtompubshowmembershipAction extends ApiAuthAction ...@@ -113,7 +113,7 @@ class AtompubshowmembershipAction extends ApiAuthAction
break; break;
default: default:
// TRANS: Client exception thrown when using an unsupported HTTP method. // TRANS: Client exception thrown when using an unsupported HTTP method.
throw new ClientException(_('HTTP method not supported'), 405); throw new ClientException(_('HTTP method not supported.'), 405);
break; break;
} }
return; return;
...@@ -149,7 +149,7 @@ class AtompubshowmembershipAction extends ApiAuthAction ...@@ -149,7 +149,7 @@ class AtompubshowmembershipAction extends ApiAuthAction
$this->auth_user->id != $this->_profile->id) { $this->auth_user->id != $this->_profile->id) {
// TRANS: Client exception thrown when deleting someone else's membership. // TRANS: Client exception thrown when deleting someone else's membership.
throw new ClientException(_("Cannot delete someone else's". throw new ClientException(_("Cannot delete someone else's".
" membership"), 403); " membership."), 403);
} }
if (Event::handle('StartLeaveGroup', array($this->_group, $this->auth_user))) { if (Event::handle('StartLeaveGroup', array($this->_group, $this->auth_user))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment