I would like the change the text of the email that goes out when you invite an external contact to an event via Nextcloud calendar.
The email template is like:
John invited you to >>āEvent Nameā Event<<
When:
āEvent Dateā, āEvent Timeā āTimezoneā
Where would i find the email template so that I can change the text of this email?
I am using Nextcloud 18.0.4 with the official Calendar extension.
1 Like
tcit
May 22, 2020, 6:22pm
2
Itās done programmatically, thereās no template for this part.
if ($method === self::METHOD_CANCEL) {
$template->setSubject('Cancelled: ' . $summary);
$template->addHeading($l10n->t('Invitation canceled'), $l10n->t('Hello %s,', [$attendeeName]));
$template->addBodyText($l10n->t('The meeting Ā»%1$sĀ« with %2$s was canceled.', [$summary, $inviteeName]));
} elseif ($method === self::METHOD_REPLY) {
$template->setSubject('Re: ' . $summary);
$template->addHeading($l10n->t('Invitation updated'), $l10n->t('Hello %s,', [$attendeeName]));
$template->addBodyText($l10n->t('The meeting Ā»%1$sĀ« with %2$s was updated.', [$summary, $inviteeName]));
} else {
$template->setSubject('Invitation: ' . $summary);
$template->addHeading($l10n->t('%1$s invited you to Ā»%2$sĀ«', [$inviteeName, $summary]), $l10n->t('Hello %s,', [$attendeeName]));
}
}
/**
* @param IEMailTemplate $template
* @param IL10N $l10n
* @param string $time
* @param string $location
* @param string $description
* @param string $url
D0unat
April 29, 2023, 10:14pm
3
Why?
Since the start of this thread it has past some time.
Is it possible by now to edit the invite in a different language than .php directly e.g. .html & .css by a template or something?
btw. the invite has problems with the representation in Outlook
1 Like
Have you ever found a way?