exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
class ApiListSubscriberAction extends ApiBareAuthAction
{
var $list = null;
$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;
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
);
break;
default:
$this->clientError(
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format