mirror of
https://github.com/nextcloud/server.git
synced 2026-03-06 07:21:11 -05:00
Subjects for Invitation, Invitation cancellation and Invitation replies are now localizable.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
00edbc2adf
commit
f33eea69ce
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'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue