X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapilistmember.php;h=8e6a84c96d16167b426d373914d9f0cfedebf727;hb=f44e0330df8ffd18786dbeb2e0a6ad4e2641046a;hp=18d6ea370b73d7bdd90074331ee6da80cd06db72;hpb=4d61760154a53e39d1e0499d5fe7a4a586e7a9f0;p=quix0rs-gnu-social.git diff --git a/actions/apilistmember.php b/actions/apilistmember.php index 18d6ea370b..8e6a84c96d 100644 --- a/actions/apilistmember.php +++ b/actions/apilistmember.php @@ -42,7 +42,6 @@ require_once INSTALLDIR . '/lib/apibareauth.php'; * @link http://status.net/ * @see ApiBareAuthAction */ - class ApiListMemberAction extends ApiBareAuthAction { /** @@ -59,7 +58,6 @@ class ApiListMemberAction extends ApiBareAuthAction * * @return boolean success flag */ - function prepare($args) { parent::prepare($args); @@ -68,12 +66,14 @@ class ApiListMemberAction extends ApiBareAuthAction $this->list = $this->getTargetList($this->arg('user'), $this->arg('list_id')); if (empty($this->list)) { - $this->clientError(_('Not found'), 404, $this->format); + // TRANS: Client error displayed when referring to a non-existing list. + $this->clientError(_('List not found.'), 404, $this->format); return false; } if (empty($this->user)) { - $this->clientError(_('No such user'), 404, $this->format); + // TRANS: Client error displayed when referring to a non-existing user. + $this->clientError(_('No such user.'), 404, $this->format); return false; } return true; @@ -84,7 +84,6 @@ class ApiListMemberAction extends ApiBareAuthAction * * @return boolean success flag */ - function handle($args) { parent::handle($args); @@ -96,7 +95,8 @@ class ApiListMemberAction extends ApiBareAuthAction if(empty($ptag)) { $this->clientError( - _('The specified user is not a member of this list'), + // TRANS: Client error displayed when referring to a non-list member. + _('The specified user is not a member of this list.'), 400, $this->format ); @@ -113,6 +113,7 @@ class ApiListMemberAction extends ApiBareAuthAction break; default: $this->clientError( + // TRANS: Client error displayed when coming across a non-supported API method. _('API method not found.'), 404, $this->format