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

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/27676/head
Paweł Lechowicz 2020-06-08 12:18:25 +07:00 committed by Thomas Citharel
parent 00edbc2adf
commit f33eea69ce
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 3 additions and 3 deletions

@ -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'));
}
}