Skip to content

Commit

Permalink
Merge pull request #35769 from nextcloud/rakekniven-patch-1
Browse files Browse the repository at this point in the history
l10n: Align notification messages for server version and apps
  • Loading branch information
skjnldsv authored Dec 20, 2022
2 parents 4d04030 + 384d7ec commit c21d3c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/updatenotification/lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,14 @@ public function prepare(INotification $notification, string $languageCode): INot
$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');
Expand Down

0 comments on commit c21d3c0

Please sign in to comment.