Subjects for Invitation, Invitation cancellation and Invitation replies are now localizable.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/27676/head
Paweł Lechowicz 6 years ago committed by Thomas Citharel
parent 00edbc2adf
commit f33eea69ce
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
  1. 6
      apps/dav/lib/CalDAV/Schedule/IMipPlugin.php

@ -517,13 +517,13 @@ class IMipPlugin extends SabreIMipPlugin {
private function addSubjectAndHeading(IEMailTemplate $template, IL10N $l10n,
$method, $summary) {
if ($method === self::METHOD_CANCEL) {
$template->setSubject('Canceled: ' . $summary);
$template->setSubject($l10n->t('Cancelled: %1$s', [$summary]));
$template->addHeading($l10n->t('Invitation canceled'));
} elseif ($method === self::METHOD_REPLY) {
$template->setSubject('Re: ' . $summary);
$template->setSubject($l10n->t('Re: %1$s', [$summary]));
$template->addHeading($l10n->t('Invitation updated'));
} else {
$template->setSubject('Invitation: ' . $summary);
$template->setSubject($l10n->t('Invitation: %1$s', [$summary]));
$template->addHeading($l10n->t('Invitation'));
}
}

Loading…
Cancel
Save