if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed handling a non-existing API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method updating profile colours.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
parent::handle($args);
if (!in_array($this->format, array('xml', 'json'))) {
- // TRANS: Client error displayed trying to execute an unknown API method verifying user credentials.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
return;
}
$this->showJsonDirectMessages();
break;
default:
- // TRANS: Client error given when an API method was not found (404).
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
parent::handle($args);
if (!in_array($this->format, array('xml', 'json'))) {
- // TRANS: Client error displayed trying to execute an unknown API method showing friendship.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), 404);
return;
}
break;
default:
$this->clientError(
- // TRANS: Client error given when an API method was not found (404).
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
break;
default:
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method showing group membership.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
400,
$this->format
break;
default:
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method joining a group.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
break;
default:
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method leaving a group.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
$this->user = $this->getTargetUser(null);
if (empty($this->user)) {
+ // TRANS: Client error displayed when user not found for an action.
$this->clientError(_('No such user.'), 404, $this->format);
return false;
}
break;
default:
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method checking group membership.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
break;
default:
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method listing the latest 20 groups.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
break;
default:
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method showing group membership.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
$this->clientError(
+ // TRANS: Client error message. POST is a HTTP command. It should not be translated.
_('This method requires a POST.'),
400, $this->format
);
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed when using an unsupported API format.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
$this->showSingleJsonGroup($this->group);
break;
default:
- // TRANS: Client error displayed when using an unsupported API format.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), 404, $this->format);
break;
}
$this->showSingleJsonGroup($this->group);
break;
default:
- // TRANS: Client error displayed trying to execute an unknown API method showing a group.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), 404, $this->format);
break;
}
$this->endDocument('json');
} else {
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method testing API connectivity.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method deleting a status.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404
);
$this->showJsonTimeline($strm);
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
parent::handle($args);
if (!in_array($this->format, array('xml', 'json', 'atom'))) {
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), 404);
return;
}
$this->clientError(
sprintf(
- // TRANS: Client error displayed when the parameter "status" is missing.
- // TRANS: %d is the maximum number of character for a notice.
+ // TRANS: Client error displayed exceeding the maximum notice length.
+ // TRANS: %d is the maximum length for a notice.
_m('That\'s too long. Maximum notice size is %d character.',
'That\'s too long. Maximum notice size is %d characters.',
Notice::maxContent()),
break;
default:
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
break;
default:
$this->clientError(
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format
parent::handle($args);
if (!in_array($this->format, array('xml', 'json'))) {
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
return;
}
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
$profile = $this->user->getProfile();
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
$sitename = common_config('site', 'name');
+ // TRANS: Title of API timeline for a user and friends.
+ // TRANS: %s is a username.
$title = sprintf(_("%s and friends"), $this->user->nickname);
$taguribase = TagURI::base();
$id = "tag:$taguribase:FriendsTimeline:" . $this->user->id;
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
$profile = $this->auth_user->getProfile();
$subtitle = sprintf(
+ // TRANS: Subtitle of API time with retweets of me.
+ // TRANS: %1$s is the StatusNet sitename, %2$s is the user nickname, %3$s is the user profile name.
_('%1$s notices that %2$s / %3$s has repeated.'),
$sitename, $this->auth_user->nickname, $profile->getBestName()
);
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), 404);
break;
}
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
$this->raw($doc->asString());
break;
default:
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}
}
if (!in_array($this->format, array('xml', 'json'))) {
- // TRANS: Client error displayed when trying to handle an unknown API method.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
return;
}
if (Notice::contentTooLong($content_shortened)) {
$upload->delete();
+ // TRANS: Client error displayed exceeding the maximum notice length.
+ // TRANS: %d is the maximum length for a notice.
$this->clientError(sprintf(_m('Maximum notice size is %d character, including attachment URL.',
'Maximum notice size is %d characters, including attachment URL.',
Notice::maxContent()),
// TRANS: Form validation error displayed when trying to register with an invalid nickname.
$this->showForm(_('Not a valid nickname.'));
} else if ($this->emailExists($email)) {
+ // TRANS: Form validation error displayed when trying to register with an already registered e-mail address.
$this->showForm(_('Email address already exists.'));
} else if (!is_null($homepage) && (strlen($homepage) > 0) &&
!Validate::uri($homepage,
$this->tag = $this->trimmed('tag');
if (!$this->user) {
+ // TRANS: Client error displayed when user not found for an action.
$this->clientError(_('No such user.'));
return false;
} else {
$profile = $user->getProfile();
if (!$profile) {
common_log_db_error($user, 'SELECT', __FILE__);
+ // TRANS: Server error displayed in user RSS when user does not have a matching profile.
$this->serverError(_('User without matching profile.'));
return null;
}
}
if (!$this->user) {
+ // TRANS: Client error displayed when user not found for an action.
$this->clientError(_('No such user.'), 404);
return false;
}