From 384d7ec61eb2f6a0f113db6d8f53116c388ae9a2 Mon Sep 17 00:00:00 2001 From: rakekniven <2069590+rakekniven@users.noreply.github.com> Date: Wed, 14 Dec 2022 13:46:41 +0100 Subject: 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> --- apps/updatenotification/lib/Notification/Notifier.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps') 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'); -- cgit v1.2.3