aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib
diff options
context:
space:
mode:
authorrakekniven <2069590+rakekniven@users.noreply.github.com>2022-12-14 13:46:41 +0100
committerJoas Schilling <coding@schilljs.com>2022-12-20 09:19:14 +0100
commit384d7ec61eb2f6a0f113db6d8f53116c388ae9a2 (patch)
treecb72b33a847fe4716ea3b36d59ef1c6e2d1643bc /apps/updatenotification/lib
parent04f68622cc78ba96ba5f88e59df7e08df8fd7420 (diff)
downloadnextcloud-server-384d7ec61eb2f6a0f113db6d8f53116c388ae9a2.tar.gz
nextcloud-server-384d7ec61eb2f6a0f113db6d8f53116c388ae9a2.zip
l10n: Align notification messages for server version and apps
Solution for #35768 Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
Diffstat (limited to 'apps/updatenotification/lib')
-rw-r--r--apps/updatenotification/lib/Notification/Notifier.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/updatenotification/lib/Notification/Notifier.php b/apps/updatenotification/lib/Notification/Notifier.php
index bfbcc203480..f5ba6c3cb35 100644
--- a/apps/updatenotification/lib/Notification/Notifier.php
+++ b/apps/updatenotification/lib/Notification/Notifier.php
@@ -128,7 +128,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');