Browse Source

Merge pull request #35769 from nextcloud/rakekniven-patch-1

l10n: Align notification messages for server version and apps
pull/35761/head
John Molakvoæ 3 years ago
committed by GitHub
parent
commit
c21d3c037e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      apps/updatenotification/lib/Notification/Notifier.php

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

Loading…
Cancel
Save