if (array_key_exists('uri', $options)) {
$other = RSVP::staticGet('uri', $options['uri']);
if (!empty($other)) {
- throw new ClientException(_('RSVP already exists.'));
+ throw new ClientException(_m('RSVP already exists.'));
}
}
'event_id' => $event->id));
if (!empty($other)) {
- throw new ClientException(_('RSVP already exists.'));
+ throw new ClientException(_m('RSVP already exists.'));
}
$rsvp = new RSVP();
switch ($response) {
case 'Y':
- $fmt = _("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> is attending <a href='%3s'>%4s</a>.</span>");
+ $fmt = _m("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> is attending <a href='%3s'>%4s</a>.</span>");
break;
case 'N':
- $fmt = _("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> is not attending <a href='%3s'>%4s</a>.</span>");
+ $fmt = _m("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> is not attending <a href='%3s'>%4s</a>.</span>");
break;
case '?':
- $fmt = _("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> might attend <a href='%3s'>%4s</a>.</span>");
+ $fmt = _m("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> might attend <a href='%3s'>%4s</a>.</span>");
break;
default:
throw new Exception("Unknown response code {$response}");
if (empty($event)) {
$eventUrl = '#';
- $eventTitle = _('an unknown event');
+ $eventTitle = _m('an unknown event');
} else {
$notice = $event->getNotice();
$eventUrl = $notice->bestUrl();
switch ($response) {
case 'Y':
- $fmt = _("%1s is attending %2s.");
+ $fmt = _m("%1s is attending %2s.");
break;
case 'N':
- $fmt = _("%1s is not attending %2s.");
+ $fmt = _m("%1s is not attending %2s.");
break;
case '?':
- $fmt = _("%1s might attend %2s.>");
+ $fmt = _m("%1s might attend %2s.>");
break;
default:
throw new Exception("Unknown response code {$response}");
}
if (empty($event)) {
- $eventTitle = _('an unknown event');
+ $eventTitle = _m('an unknown event');
} else {
$notice = $event->getNotice();
$eventTitle = $event->title;