mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #35769 from nextcloud/rakekniven-patch-1
l10n: Align notification messages for server version and apps
This commit is contained in:
commit
c21d3c037e
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Reference in a new issue