diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-10-16 14:31:41 +0200 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-10-16 14:31:41 +0200 |
commit | 31415b5853952e50f1ac7be816f4bb669884142c (patch) | |
tree | 1543f0fce7395d468f1a19244c7932c32400c773 /actions | |
parent | 77191f455a670af6d747f6d1881fa0c3a1ee5b4b (diff) |
Update translator documentation.
Diffstat (limited to 'actions')
-rw-r--r-- | actions/apidirectmessage.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/apidirectmessage.php b/actions/apidirectmessage.php index e7ea38dfa..4e2ec5eb0 100644 --- a/actions/apidirectmessage.php +++ b/actions/apidirectmessage.php @@ -74,6 +74,7 @@ class ApiDirectMessageAction extends ApiAuthAction $this->user = $this->auth_user; if (empty($this->user)) { + // TRANS: Client error given when a user was not found (404). $this->clientError(_('No such user.'), 404, $this->format); return; } @@ -86,10 +87,12 @@ class ApiDirectMessageAction extends ApiAuthAction // Action was called by /api/direct_messages/sent.format $this->title = sprintf( + // TRANS: %s is a user nickname. _("Direct messages from %s"), $this->user->nickname ); $this->subtitle = sprintf( + // TRANS: %s is a user nickname. _("All the direct messages sent from %s"), $this->user->nickname ); @@ -98,10 +101,12 @@ class ApiDirectMessageAction extends ApiAuthAction $this->id = "tag:$taguribase:SentDirectMessages:" . $this->user->id; } else { $this->title = sprintf( + // TRANS: %s is a user nickname. _("Direct messages to %s"), $this->user->nickname ); $this->subtitle = sprintf( + // TRANS: %s is a user nickname. _("All the direct messages sent to %s"), $this->user->nickname ); @@ -153,6 +158,7 @@ class ApiDirectMessageAction extends ApiAuthAction $this->showJsonDirectMessages(); break; default: + // TRANS: Client error given when an API method was not found (404). $this->clientError(_('API method not found.'), $code = 404); break; } |