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>
pull/35769/head
rakekniven 2022-12-14 13:46:41 +07:00 committed by Joas Schilling
parent 04f68622cc
commit 384d7ec61e
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 8 additions and 1 deletions

@ -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');