diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-12-20 14:59:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 14:59:15 +0100 |
commit | c21d3c037e6227a7a21700c64f31e197d13cd1ee (patch) | |
tree | 591e8ed19f024ec28f66bd922d7cf7e06148565c /apps | |
parent | 4d0403009d8449a88faf7ffc3c6df196c5ac9948 (diff) | |
parent | 384d7ec61eb2f6a0f113db6d8f53116c388ae9a2 (diff) | |
download | nextcloud-server-c21d3c037e6227a7a21700c64f31e197d13cd1ee.tar.gz nextcloud-server-c21d3c037e6227a7a21700c64f31e197d13cd1ee.zip |
Merge pull request #35769 from nextcloud/rakekniven-patch-1
l10n: Align notification messages for server version and apps
Diffstat (limited to 'apps')
-rw-r--r-- | apps/updatenotification/lib/Notification/Notifier.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/updatenotification/lib/Notification/Notifier.php b/apps/updatenotification/lib/Notification/Notifier.php index abba20f993b..c1269daaa30 100644 --- a/apps/updatenotification/lib/Notification/Notifier.php +++ b/apps/updatenotification/lib/Notification/Notifier.php @@ -127,7 +127,14 @@ class Notifier implements INotifier { $this->updateAlreadyInstalledCheck($notification, $this->getCoreVersions()); $parameters = $notification->getSubjectParameters(); - $notification->setParsedSubject($l->t('Update to %1$s is available.', [$parameters['version']])); + $notification->setParsedSubject($l->t('Update to %1$s is available.', [$parameters['version']])) + ->setRichSubject($l->t('Update to {serverAndVersion} is available.'), [ + 'serverAndVersion' => [ + 'type' => 'highlight', + 'id' => $notification->getObjectType(), + 'name' => $parameters['version'], + ] + ]); if ($this->isAdmin()) { $notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index', ['section' => 'overview']) . '#version'); |