Browse Source
Merge pull request #44305 from nextcloud/bugfix/noid/use-correct-language-file
fix(federatedfilesharing): Use correct language file to render notifi…
pull/44316/head
Joas Schilling
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
apps/federatedfilesharing/lib/Notifier.php
-
apps/files_sharing/lib/Notification/Notifier.php
|
|
|
@ -94,7 +94,7 @@ class Notifier implements INotifier { |
|
|
|
} |
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
@ -249,7 +249,7 @@ class Notifier implements INotifier { |
|
|
|
$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); |
|
|
|
|