* Callback handler to populate end time dropdown
*/
class TimelistAction extends Action {
-
private $start;
private $duration;
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;
}
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.'));
}
}