@@ -1512,21 +1512,20 @@ protected function sendUserShareMail(
15121512 'shareWith ' => $ shareWith ,
15131513 ]);
15141514
1515- $ emailTemplate ->setSubject ($ l ->t ('%1$s shared » %2$s« with you ' , [$ initiatorDisplayName , $ filename ]));
1515+ $ emailTemplate ->setSubject ($ l ->t ('%1$s shared %2$s with you ' , [$ initiatorDisplayName , $ filename ]));
15161516 $ emailTemplate ->addHeader ();
1517- $ emailTemplate ->addHeading ($ l ->t ('%1$s shared »%2$s« with you ' , [$ initiatorDisplayName , $ filename ]), false );
1518- $ text = $ l ->t ('%1$s shared »%2$s« with you. ' , [$ initiatorDisplayName , $ filename ]);
1517+ $ emailTemplate ->addHeading ($ l ->t ('%1$s shared %2$s with you ' , [$ initiatorDisplayName , $ filename ]), false );
15191518
15201519 if ($ note !== '' ) {
15211520 $ emailTemplate ->addBodyText (htmlspecialchars ($ note ), $ note );
15221521 }
15231522
15241523 $ emailTemplate ->addBodyText (
1525- htmlspecialchars ($ text . ' ' . $ l ->t ('Click the button below to open it. ' )),
1526- $ text
1524+ $ l ->t ('Click the button below to open it. ' )
15271525 );
1526+
15281527 $ emailTemplate ->addBodyButton (
1529- $ l ->t ('Open »%s« ' , [$ filename ]),
1528+ $ l ->t ('Open %s ' , [$ filename ]),
15301529 $ link
15311530 );
15321531
@@ -1601,20 +1600,20 @@ private function sendNote(array $recipients, IShare $share) {
16011600 $ initiatorUser = $ this ->userManager ->get ($ initiator );
16021601 $ initiatorDisplayName = ($ initiatorUser instanceof IUser) ? $ initiatorUser ->getDisplayName () : $ initiator ;
16031602 $ initiatorEmailAddress = ($ initiatorUser instanceof IUser) ? $ initiatorUser ->getEMailAddress () : null ;
1604- $ plainHeading = $ l ->t ('%1$s shared » %2$s« with you and wants to add: ' , [$ initiatorDisplayName , $ filename ]);
1605- $ htmlHeading = $ l ->t ('%1$s shared » %2$s« with you and wants to add ' , [$ initiatorDisplayName , $ filename ]);
1603+ $ plainHeading = $ l ->t ('%1$s shared %2$s with you and wants to add: ' , [$ initiatorDisplayName , $ filename ]);
1604+ $ htmlHeading = $ l ->t ('%1$s shared %2$s with you and wants to add ' , [$ initiatorDisplayName , $ filename ]);
16061605 $ message = $ this ->mailer ->createMessage ();
16071606
16081607 $ emailTemplate = $ this ->mailer ->createEMailTemplate ('defaultShareProvider.sendNote ' );
16091608
1610- $ emailTemplate ->setSubject ($ l ->t ('»%s« added a note to a file shared with you ' , [$ initiatorDisplayName ]));
1609+ $ emailTemplate ->setSubject ($ l ->t ('%s added a note to a file shared with you ' , [$ initiatorDisplayName ]));
16111610 $ emailTemplate ->addHeader ();
16121611 $ emailTemplate ->addHeading ($ htmlHeading , $ plainHeading );
16131612 $ emailTemplate ->addBodyText (htmlspecialchars ($ note ), $ note );
16141613
16151614 $ link = $ this ->urlGenerator ->linkToRouteAbsolute ('files.viewcontroller.showFile ' , ['fileid ' => $ share ->getNode ()->getId ()]);
16161615 $ emailTemplate ->addBodyButton (
1617- $ l ->t ('Open »%s« ' , [$ filename ]),
1616+ $ l ->t ('Open %s ' , [$ filename ]),
16181617 $ link
16191618 );
16201619
0 commit comments