Skip to content

Commit f8ad4ae

Browse files
authored
Merge pull request #44312 from nextcloud/backport/44305/stable27
2 parents d2754fe + a1acc51 commit f8ad4ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/federatedfilesharing/lib/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function prepare(INotification $notification, string $languageCode): INot
9494
}
9595

9696
// Read the language from the notification
97-
$l = $this->factory->get('files_sharing', $languageCode);
97+
$l = $this->factory->get('federatedfilesharing', $languageCode);
9898

9999
switch ($notification->getSubject()) {
100100
// Deal with known subjects

apps/files_sharing/lib/Notification/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ protected function parseShareInvitation(IShare $share, INotification $notificati
249249
$notification->addParsedAction($acceptAction);
250250

251251
$rejectAction = $notification->createAction();
252-
$rejectAction->setParsedLabel($l->t('Reject'))
252+
$rejectAction->setParsedLabel($l->t('Decline'))
253253
->setLink($this->url->linkToOCSRouteAbsolute('files_sharing.ShareAPI.deleteShare', ['id' => $share->getId()]), 'DELETE')
254254
->setPrimary(false);
255255
$notification->addParsedAction($rejectAction);

0 commit comments

Comments
 (0)