aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Notification
diff options
context:
space:
mode:
authorSascha Wiswedel <sascha.wiswedel@nextcloud.com>2019-12-06 14:48:00 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-12-17 10:38:14 +0100
commitf56756680392db2516b5db10c9c9a4f736406015 (patch)
treed64ec2d7c03800672e44ecd22c820db1f08ab6cb /apps/files/lib/Notification
parentf1319e1bc5816d3f000b099d5ff85ad92ea8fc72 (diff)
downloadnextcloud-server-f56756680392db2516b5db10c9c9a4f736406015.tar.gz
nextcloud-server-f56756680392db2516b5db10c9c9a4f736406015.zip
notification polishing
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
Diffstat (limited to 'apps/files/lib/Notification')
-rw-r--r--apps/files/lib/Notification/Notifier.php36
1 files 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;
}