* @link http://status.net/
* @see ApiBareAuthAction
*/
-
class ApiListMemberAction extends ApiBareAuthAction
{
/**
*
* @return boolean success flag
*/
-
function prepare($args)
{
parent::prepare($args);
$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;
*
* @return boolean success flag
*/
-
function handle($args)
{
parent::handle($args);
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
);
break;
default:
$this->clientError(
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format