mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +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) ?>
|
||||
<a href="<?= $hostLink ?>"><?= $host->host_name ?></a>
|
||||
<?php if (isset($host->host_unhandled_services) && $host->host_unhandled_services > 0): ?>
|
||||
<span title="<?=
|
||||
$host->host_unhandled_services
|
||||
?> <?= $this->translate('Service Problems on Host') ?>"> (<?= $this->qlink(
|
||||
<span title="<?php printf(
|
||||
$this->translatePlural('%s Service Problem on Host "%s"', '%s Service Problems on Host "%s"', $host->host_unhandled_services),
|
||||
$host->host_unhandled_services,
|
||||
$host->host_name
|
||||
); ?>"> (<?= $this->qlink(
|
||||
sprintf(
|
||||
$this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
|
||||
$host->host_unhandled_services),
|
||||
|
Loading…
x
Reference in New Issue
Block a user