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;
}
default:
// TRANS: Exception thrown requesting an unsupported notice output format.
// TRANS: %s is the requested output format.
- throw new Exception(sprintf(_("Unsupported format: %s"), $this->format));
+ throw new Exception(sprintf(_("Unsupported format: %s."), $this->format));
}
} else {
// XXX: Twitter just sets a 404 header and doens't bother
{
if ($this->format != 'atom') {
// TRANS: Client error displayed when trying to delete a notice not using the Atom format.
- $this->clientError(_("Can only delete using the Atom format."));
+ $this->clientError(_('Can only delete using the Atom format.'));
return;
}