mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Hosts list: use $this->translatePlural()
This commit is contained in:
parent
f0784caaad
commit
fccc2ffbcf
@ -100,9 +100,11 @@ if ($hosts->count() === 0) {
|
|||||||
<?= implode(' ', $icons) ?>
|
<?= implode(' ', $icons) ?>
|
||||||
<a href="<?= $hostLink ?>"><?= $host->host_name ?></a>
|
<a href="<?= $hostLink ?>"><?= $host->host_name ?></a>
|
||||||
<?php if (isset($host->host_unhandled_services) && $host->host_unhandled_services > 0): ?>
|
<?php if (isset($host->host_unhandled_services) && $host->host_unhandled_services > 0): ?>
|
||||||
<span title="<?=
|
<span title="<?php printf(
|
||||||
$host->host_unhandled_services
|
$this->translatePlural('%s Service Problem on Host "%s"', '%s Service Problems on Host "%s"', $host->host_unhandled_services),
|
||||||
?> <?= $this->translate('Service Problems on Host') ?>"> (<?= $this->qlink(
|
$host->host_unhandled_services,
|
||||||
|
$host->host_name
|
||||||
|
); ?>"> (<?= $this->qlink(
|
||||||
sprintf(
|
sprintf(
|
||||||
$this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
|
$this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
|
||||||
$host->host_unhandled_services),
|
$host->host_unhandled_services),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user