aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorPaweł Lechowicz <p.j.lechowicz@gmail.com>2020-06-08 12:18:25 +0200
committerThomas Citharel <tcit@tcit.fr>2021-06-25 17:23:00 +0200
commitf33eea69cea2d6b09d4c2e5b70d581f5f3aa050e (patch)
treec87827a2f0244a5d4e7404d12e9af5549196e9b4 /apps/dav/lib
parent00edbc2adf4d9362041f5611c62967f5a70e5b7e (diff)
downloadnextcloud-server-f33eea69cea2d6b09d4c2e5b70d581f5f3aa050e.tar.gz
nextcloud-server-f33eea69cea2d6b09d4c2e5b70d581f5f3aa050e.zip
Subjects for Invitation, Invitation cancellation and Invitation replies are now localizable.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CalDAV/Schedule/IMipPlugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
index 18efe618483..5407fa9420a 100644
--- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
+++ b/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'));
}
}