mirror of
https://github.com/nextcloud/server.git
synced 2026-04-04 08:35:50 -04:00
Merge pull request #27676 from nextcloud/localize-invitation-email-subjects
Localize invitation email subjects
This commit is contained in:
commit
583e597237
1 changed files with 6 additions and 3 deletions
|
|
@ -517,13 +517,16 @@ class IMipPlugin extends SabreIMipPlugin {
|
|||
private function addSubjectAndHeading(IEMailTemplate $template, IL10N $l10n,
|
||||
$method, $summary) {
|
||||
if ($method === self::METHOD_CANCEL) {
|
||||
$template->setSubject('Canceled: ' . $summary);
|
||||
// TRANSLATORS Subject for email, when an invitation is cancelled. Ex: "Cancelled: {{Event Name}}"
|
||||
$template->setSubject($l10n->t('Cancelled: %1$s', [$summary]));
|
||||
$template->addHeading($l10n->t('Invitation canceled'));
|
||||
} elseif ($method === self::METHOD_REPLY) {
|
||||
$template->setSubject('Re: ' . $summary);
|
||||
// TRANSLATORS Subject for email, when an invitation is updated. Ex: "Re: {{Event Name}}"
|
||||
$template->setSubject($l10n->t('Re: %1$s', [$summary]));
|
||||
$template->addHeading($l10n->t('Invitation updated'));
|
||||
} else {
|
||||
$template->setSubject('Invitation: ' . $summary);
|
||||
// TRANSLATORS Subject for email, when an invitation is sent. Ex: "Invitation: {{Event Name}}"
|
||||
$template->setSubject($l10n->t('Invitation: %1$s', [$summary]));
|
||||
$template->addHeading($l10n->t('Invitation'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue