From f56756680392db2516b5db10c9c9a4f736406015 Mon Sep 17 00:00:00 2001 From: Sascha Wiswedel Date: Fri, 6 Dec 2019 14:48:00 +0100 Subject: [PATCH] notification polishing Signed-off-by: Sascha Wiswedel --- apps/files/lib/Notification/Notifier.php | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/files/lib/Notification/Notifier.php b/apps/files/lib/Notification/Notifier.php index aa3fa6bfa26..a802655414d 100644 --- a/apps/files/lib/Notification/Notifier.php +++ b/apps/files/lib/Notification/Notifier.php @@ -142,7 +142,7 @@ class Notifier implements INotifier, IDismissableNotifier { $notification->addParsedAction($approveAction) ->addParsedAction($disapproveAction) ->setRichSubject( - $l->t('Incoming file transfer from {user}'), + $l->t('Incoming ownership transfer from {user}'), [ 'user' => [ 'type' => 'user', @@ -150,7 +150,7 @@ class Notifier implements INotifier, IDismissableNotifier { 'name' => $param['sourceUser'], ], ]) - ->setParsedSubject(str_replace('{user}', $param['sourceUser'], $l->t('Incoming file transfer from {user}'))) + ->setParsedSubject(str_replace('{user}', $param['sourceUser'], $l->t('Incoming ownership transfer from {user}'))) ->setRichMessage( $l->t('Do you want to accept {path}?'), [ @@ -169,11 +169,11 @@ class Notifier implements INotifier, IDismissableNotifier { $l = $this->l10nFactory->get('files', $languageCode); $param = $notification->getSubjectParameters(); - $notification->setRichSubject($l->t('File transfer failed')) - ->setParsedSubject($l->t('File transfer failed')) + $notification->setRichSubject($l->t('Ownership transfer failed')) + ->setParsedSubject($l->t('Ownership transfer failed')) ->setRichMessage( - $l->t('Your transfer of {path} to {user} failed.'), + $l->t('Your ownership transfer of {path} to {user} failed.'), [ 'path' => [ 'type' => 'highlight', @@ -186,7 +186,7 @@ class Notifier implements INotifier, IDismissableNotifier { 'name' => $param['targetUser'], ], ]) - ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['targetUser']], $l->t('Your transfer of {path} to {user} failed.'))); + ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['targetUser']], $l->t('Your ownership transfer of {path} to {user} failed.'))); return $notification; } @@ -194,11 +194,11 @@ class Notifier implements INotifier, IDismissableNotifier { $l = $this->l10nFactory->get('files', $languageCode); $param = $notification->getSubjectParameters(); - $notification->setRichSubject($l->t('File transfer failed')) - ->setParsedSubject($l->t('File transfer failed')) + $notification->setRichSubject($l->t('Ownership transfer failed')) + ->setParsedSubject($l->t('Ownership transfer failed')) ->setRichMessage( - $l->t('The transfer of {path} from {user} failed.'), + $l->t('The ownership transfer of {path} from {user} failed.'), [ 'path' => [ 'type' => 'highlight', @@ -211,7 +211,7 @@ class Notifier implements INotifier, IDismissableNotifier { 'name' => $param['sourceUser'], ], ]) - ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['sourceUser']], $l->t('The transfer of {path} from {user} failed.'))); + ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['sourceUser']], $l->t('The ownership transfer of {path} from {user} failed.'))); return $notification; } @@ -220,11 +220,11 @@ class Notifier implements INotifier, IDismissableNotifier { $l = $this->l10nFactory->get('files', $languageCode); $param = $notification->getSubjectParameters(); - $notification->setRichSubject($l->t('File transfer done')) - ->setParsedSubject($l->t('File transfer done')) + $notification->setRichSubject($l->t('Ownership transfer done')) + ->setParsedSubject($l->t('Ownership transfer done')) ->setRichMessage( - $l->t('Your transfer of {path} to {user} has completed.'), + $l->t('Your ownership transfer of {path} to {user} has completed.'), [ 'path' => [ 'type' => 'highlight', @@ -237,7 +237,7 @@ class Notifier implements INotifier, IDismissableNotifier { 'name' => $param['targetUser'], ], ]) - ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['targetUser']], $l->t('Your transfer of {path} to {user} has completed.'))); + ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['targetUser']], $l->t('Your ownership transfer of {path} to {user} has completed.'))); return $notification; } @@ -246,11 +246,11 @@ class Notifier implements INotifier, IDismissableNotifier { $l = $this->l10nFactory->get('files', $languageCode); $param = $notification->getSubjectParameters(); - $notification->setRichSubject($l->t('File transfer done')) - ->setParsedSubject($l->t('File transfer done')) + $notification->setRichSubject($l->t('Ownership transfer done')) + ->setParsedSubject($l->t('Ownership transfer done')) ->setRichMessage( - $l->t('The transfer of {path} from {user} has completed.'), + $l->t('The ownership transfer of {path} from {user} has completed.'), [ 'path' => [ 'type' => 'highlight', @@ -263,7 +263,7 @@ class Notifier implements INotifier, IDismissableNotifier { 'name' => $param['sourceUser'], ], ]) - ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['sourceUser']], $l->t('The transfer of {path} from {user} has completed.'))); + ->setParsedMessage(str_replace(['{path}', '{user}'], [$param['nodeName'], $param['sourceUser']], $l->t('The ownership transfer of {path} from {user} has completed.'))); return $notification; } -- 2.39.5