Dashlet, Kickstart: fix translatable strings

fixes #2405
This commit is contained in:
Thomas Gelf 2021-12-13 13:36:26 +01:00
parent f35ded85fb
commit b70b19ad32
4 changed files with 5 additions and 6 deletions

View File

@ -75,7 +75,7 @@ class KickstartForm extends DirectorForm
$hint = Html::sprintf( $hint = Html::sprintf(
$this->translate('Your database looks good, you are ready to %s'), $this->translate('Your database looks good, you are ready to %s'),
Link::create( Link::create(
'start working with the Icinga Director', $this->translate('start working with the Icinga Director'),
'director', 'director',
null, null,
['data-base-target' => '_main'] ['data-base-target' => '_main']

View File

@ -10,7 +10,7 @@ class CommandTemplatesDashlet extends CheckCommandsDashlet
{ {
return $this->translate( return $this->translate(
'External Notification Commands have been defined in your local Icinga 2' 'External Notification Commands have been defined in your local Icinga 2'
. ' Configuration. ' . ' Configuration.'
); );
} }

View File

@ -10,7 +10,7 @@ class ExternalNotificationCommandsDashlet extends CheckCommandsDashlet
{ {
return $this->translate( return $this->translate(
'External Notification Commands have been defined in your local Icinga 2' 'External Notification Commands have been defined in your local Icinga 2'
. ' Configuration. ' . ' Configuration.'
); );
} }

View File

@ -16,9 +16,8 @@ class NotificationApplyDashlet extends Dashlet
public function getSummary() public function getSummary()
{ {
return $this->translate( return $this->translate(
'Apply notifications with specific properties according to given' 'Apply notifications with specific properties according to given rules.'
. ' rules.' . ' ' . $this->getApplySummaryText('notification') ) . ' ' . $this->getApplySummaryText('notification');
);
} }
public function shouldBeShown() public function shouldBeShown()