From d85bfd426d2c5c00ab8dd3702f8061dc1a55cfb6 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 19 Aug 2011 16:46:28 +0200 Subject: [PATCH] Update/add translator documentation. Fix i18n domain where needed. Whitespace updates. --- plugins/Event/newrsvp.php | 4 ++-- plugins/Event/timelist.php | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/Event/newrsvp.php b/plugins/Event/newrsvp.php index e9adf405d8..8052b972a4 100644 --- a/plugins/Event/newrsvp.php +++ b/plugins/Event/newrsvp.php @@ -78,14 +78,14 @@ class NewrsvpAction extends Action $eventId = $this->trimmed('event'); if (empty($eventId)) { - // TRANS: Client exception thrown when requesting a non-exsting event. + // TRANS: Client exception thrown when referring to a non-existing event. throw new ClientException(_m('No such event.')); } $this->event = Happening::staticGet('id', $eventId); if (empty($this->event)) { - // TRANS: Client exception thrown when requesting a non-exsting event. + // TRANS: Client exception thrown when referring to a non-existing event. throw new ClientException(_m('No such event.')); } diff --git a/plugins/Event/timelist.php b/plugins/Event/timelist.php index a6e0174180..cb8efb3c1d 100644 --- a/plugins/Event/timelist.php +++ b/plugins/Event/timelist.php @@ -32,7 +32,6 @@ if (!defined('STATUSNET')) { * Callback handler to populate end time dropdown */ class TimelistAction extends Action { - private $start; private $duration; @@ -63,13 +62,14 @@ class TimelistAction extends Action { if (!common_logged_in()) { // TRANS: Error message displayed when trying to perform an action that requires a logged in user. - $this->clientError(_('Not logged in.')); + $this->clientError(_m('Not logged in.')); return; } if (!empty($this->start)) { $times = EventTimeList::getTimes($this->start, $this->duration); } else { + // TRANS: Client error when submitting a form with unexpected information. $this->clientError(_m('Unexpected form submission.')); return; } @@ -78,6 +78,7 @@ class TimelistAction extends Action { header('Content-Type: application/json; charset=utf-8'); print json_encode($times); } else { + // TRANS: Client error displayed when using an action in a non-AJAX way. $this->clientError(_m('This action is AJAX only.')); } } -- 2.39.5