From b70b19ad327f6507b8733b7e8a6d47710f7de558 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 13 Dec 2021 13:36:26 +0100 Subject: [PATCH] Dashlet, Kickstart: fix translatable strings fixes #2405 --- application/forms/KickstartForm.php | 2 +- .../Director/Dashboard/Dashlet/CommandTemplatesDashlet.php | 2 +- .../Dashlet/ExternalNotificationCommandsDashlet.php | 2 +- .../Director/Dashboard/Dashlet/NotificationApplyDashlet.php | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/application/forms/KickstartForm.php b/application/forms/KickstartForm.php index 7bc667d0..b7a6b084 100644 --- a/application/forms/KickstartForm.php +++ b/application/forms/KickstartForm.php @@ -75,7 +75,7 @@ class KickstartForm extends DirectorForm $hint = Html::sprintf( $this->translate('Your database looks good, you are ready to %s'), Link::create( - 'start working with the Icinga Director', + $this->translate('start working with the Icinga Director'), 'director', null, ['data-base-target' => '_main'] diff --git a/library/Director/Dashboard/Dashlet/CommandTemplatesDashlet.php b/library/Director/Dashboard/Dashlet/CommandTemplatesDashlet.php index b09b29ee..512298ad 100644 --- a/library/Director/Dashboard/Dashlet/CommandTemplatesDashlet.php +++ b/library/Director/Dashboard/Dashlet/CommandTemplatesDashlet.php @@ -10,7 +10,7 @@ class CommandTemplatesDashlet extends CheckCommandsDashlet { return $this->translate( 'External Notification Commands have been defined in your local Icinga 2' - . ' Configuration. ' + . ' Configuration.' ); } diff --git a/library/Director/Dashboard/Dashlet/ExternalNotificationCommandsDashlet.php b/library/Director/Dashboard/Dashlet/ExternalNotificationCommandsDashlet.php index c329d4ad..435d0cbb 100644 --- a/library/Director/Dashboard/Dashlet/ExternalNotificationCommandsDashlet.php +++ b/library/Director/Dashboard/Dashlet/ExternalNotificationCommandsDashlet.php @@ -10,7 +10,7 @@ class ExternalNotificationCommandsDashlet extends CheckCommandsDashlet { return $this->translate( 'External Notification Commands have been defined in your local Icinga 2' - . ' Configuration. ' + . ' Configuration.' ); } diff --git a/library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php b/library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php index 31e19764..65d6593d 100644 --- a/library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php +++ b/library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php @@ -16,9 +16,8 @@ class NotificationApplyDashlet extends Dashlet public function getSummary() { return $this->translate( - 'Apply notifications with specific properties according to given' - . ' rules.' . ' ' . $this->getApplySummaryText('notification') - ); + 'Apply notifications with specific properties according to given rules.' + ) . ' ' . $this->getApplySummaryText('notification'); } public function shouldBeShown()