From c58253aa8de39fd221dc2788299f413193038f4c Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 26 Mar 2020 16:27:13 -0100 Subject: [PATCH] use current language on sharedbymail Signed-off-by: Maxence Lange --- lib/Circles/FileSharingBroadcaster.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Circles/FileSharingBroadcaster.php b/lib/Circles/FileSharingBroadcaster.php index 1a0faba6e..f6028991a 100644 --- a/lib/Circles/FileSharingBroadcaster.php +++ b/lib/Circles/FileSharingBroadcaster.php @@ -410,6 +410,11 @@ private function sharedByMail( ['token' => $sharesToken->getToken()] ); + $lang = $this->configService->getCoreValueForUser($share->getSharedBy(), 'lang', ''); + if ($lang !== '') { + $this->l10n = OC::$server->getL10N(Application::APP_NAME, $lang); + } + try { $this->sendMail( $share->getNode()