From 6658bd1893a08f03ae85bac9c9cf7700592d7213 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Thu, 20 Jan 2011 18:45:13 +0100 Subject: [PATCH] Update translator documentation Remove unneeded i18n for debug message Remove superfluous whitespace --- actions/apitimelineuser.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php index 5809df3b5e..85e8f97b2a 100644 --- a/actions/apitimelineuser.php +++ b/actions/apitimelineuser.php @@ -241,7 +241,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction * * @return boolean true */ - + function isReadOnly($args) { return ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD'); @@ -307,11 +307,13 @@ class ApiTimelineUserAction extends ApiBareAuthAction $xml = trim(file_get_contents('php://input')); if (empty($xml)) { + // TRANS: Client error displayed attempting to post an empty API notice. $this->clientError(_('Atom post must not be empty.')); } $dom = DOMDocument::loadXML($xml); if (!$dom) { + // TRANS: Client error displayed attempting to post an API that is not well-formed XML. $this->clientError(_('Atom post must be well-formed XML.')); } @@ -375,6 +377,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction } else { // @fixme fetch from $sourceUrl? // TRANS: Client error displayed when posting a notice without content through the API. + // TRANS: %d is the notice ID (number). $this->clientError(sprintf(_('No content for notice %d.'), $note->id)); return; @@ -434,7 +437,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction $options['groups'] = $uri; } else { // @fixme: hook for discovery here - common_log(LOG_WARNING, sprintf(_('AtomPub post with unknown attention URI %s'), $uri)); + common_log(LOG_WARNING, sprintf('AtomPub post with unknown attention URI %s', $uri)); } } } -- 2.39.5