aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-12-11 08:36:16 +0100
committerGitHub <noreply@github.com>2024-12-11 08:36:16 +0100
commitf4762653abcd379048b9eb0b3f692033ef66155b (patch)
treee22bfe609726ee7fafe07aede2eb91ff369c5e01 /lib
parenta624091a9cf43ee4d71d844421ffcdc87be563a7 (diff)
parentf86fb0fee2b9742b5f15e25cb79baed9d407331a (diff)
downloadnextcloud-server-f4762653abcd379048b9eb0b3f692033ef66155b.tar.gz
nextcloud-server-f4762653abcd379048b9eb0b3f692033ef66155b.zip
Merge pull request #49746 from nextcloud/printOnlyOnceText
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/DefaultShareProvider.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index 40fbae541ce..b39e5a71782 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -1512,21 +1512,20 @@ class DefaultShareProvider implements IShareProviderWithNotification, IShareProv
'shareWith' => $shareWith,
]);
- $emailTemplate->setSubject($l->t('%1$s shared »%2$s« with you', [$initiatorDisplayName, $filename]));
+ $emailTemplate->setSubject($l->t('%1$s shared %2$s with you', [$initiatorDisplayName, $filename]));
$emailTemplate->addHeader();
- $emailTemplate->addHeading($l->t('%1$s shared »%2$s« with you', [$initiatorDisplayName, $filename]), false);
- $text = $l->t('%1$s shared »%2$s« with you.', [$initiatorDisplayName, $filename]);
+ $emailTemplate->addHeading($l->t('%1$s shared %2$s with you', [$initiatorDisplayName, $filename]), false);
if ($note !== '') {
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
}
$emailTemplate->addBodyText(
- htmlspecialchars($text . ' ' . $l->t('Click the button below to open it.')),
- $text
+ $l->t('Click the button below to open it.')
);
+
$emailTemplate->addBodyButton(
- $l->t('Open »%s«', [$filename]),
+ $l->t('Open %s', [$filename]),
$link
);
@@ -1601,20 +1600,20 @@ class DefaultShareProvider implements IShareProviderWithNotification, IShareProv
$initiatorUser = $this->userManager->get($initiator);
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
$initiatorEmailAddress = ($initiatorUser instanceof IUser) ? $initiatorUser->getEMailAddress() : null;
- $plainHeading = $l->t('%1$s shared »%2$s« with you and wants to add:', [$initiatorDisplayName, $filename]);
- $htmlHeading = $l->t('%1$s shared »%2$s« with you and wants to add', [$initiatorDisplayName, $filename]);
+ $plainHeading = $l->t('%1$s shared %2$s with you and wants to add:', [$initiatorDisplayName, $filename]);
+ $htmlHeading = $l->t('%1$s shared %2$s with you and wants to add', [$initiatorDisplayName, $filename]);
$message = $this->mailer->createMessage();
$emailTemplate = $this->mailer->createEMailTemplate('defaultShareProvider.sendNote');
- $emailTemplate->setSubject($l->t('»%s« added a note to a file shared with you', [$initiatorDisplayName]));
+ $emailTemplate->setSubject($l->t('%s added a note to a file shared with you', [$initiatorDisplayName]));
$emailTemplate->addHeader();
$emailTemplate->addHeading($htmlHeading, $plainHeading);
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
$link = $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]);
$emailTemplate->addBodyButton(
- $l->t('Open »%s«', [$filename]),
+ $l->t('Open %s', [$filename]),
$link
);