diff --git a/apps/federatedfilesharing/lib/Notifier.php b/apps/federatedfilesharing/lib/Notifier.php index 563b121ce5bd8..14cb1777b7b6c 100644 --- a/apps/federatedfilesharing/lib/Notifier.php +++ b/apps/federatedfilesharing/lib/Notifier.php @@ -94,7 +94,7 @@ public function prepare(INotification $notification, string $languageCode): INot } // Read the language from the notification - $l = $this->factory->get('files_sharing', $languageCode); + $l = $this->factory->get('federatedfilesharing', $languageCode); switch ($notification->getSubject()) { // Deal with known subjects diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php index d339c484dd789..91b7783a43d84 100644 --- a/apps/files_sharing/lib/Notification/Notifier.php +++ b/apps/files_sharing/lib/Notification/Notifier.php @@ -249,7 +249,7 @@ protected function parseShareInvitation(IShare $share, INotification $notificati $notification->addParsedAction($acceptAction); $rejectAction = $notification->createAction(); - $rejectAction->setParsedLabel($l->t('Reject')) + $rejectAction->setParsedLabel($l->t('Decline')) ->setLink($this->url->linkToOCSRouteAbsolute('files_sharing.ShareAPI.deleteShare', ['id' => $share->getId()]), 'DELETE') ->setPrimary(false); $notification->addParsedAction($rejectAction);