X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapilistsubscriber.php;h=cd10568e1b3fb9c2cc6de471f5d11035f4b8753c;hb=f0d762f1968fa0ac33b39d73cc9c0225c9e8a989;hp=d6816b9b91304a08ff9af377a34e44ea9669c01e;hpb=cad040ce4e00ea66c062fefa744e3b540c29ae27;p=quix0rs-gnu-social.git diff --git a/actions/apilistsubscriber.php b/actions/apilistsubscriber.php index d6816b9b91..cd10568e1b 100644 --- a/actions/apilistsubscriber.php +++ b/actions/apilistsubscriber.php @@ -43,12 +43,14 @@ class ApiListSubscriberAction 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 trying to perform an action related 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 trying to perform an action related to a non-existing user. + $this->clientError(_('No such user.'), 404, $this->format); return false; } return true; @@ -64,7 +66,8 @@ class ApiListSubscriberAction extends ApiBareAuthAction if(empty($sub)) { $this->clientError( - _('The specified user is not a subscriber of this list'), + // TRANS: Client error displayed when a membership check for a user is nagative. + _('The specified user is not a subscriber of this list.'), 400, $this->format ); @@ -81,6 +84,7 @@ class ApiListSubscriberAction 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