Use transplatePlural for hosts in downtime and hosts having comments tooltips
refs #8110
This commit is contained in:
parent
1d99780a61
commit
4fc8850e25
|
@ -30,9 +30,9 @@
|
|||
</h3>
|
||||
|
||||
<div>
|
||||
<a href="<?= $listAllLink ?>" title="<?php printf(
|
||||
$this->translate('List all Hosts (%u)'),
|
||||
count($objects)
|
||||
<a href="<?= $listAllLink ?>" title="<?= sprintf(
|
||||
$this->translate('List all %u hosts'),
|
||||
$hostCount
|
||||
); ?>">
|
||||
<?= $this->translate('List all') ?>
|
||||
</a>
|
||||
|
@ -112,10 +112,14 @@
|
|||
<h2>
|
||||
<?php $inDowntimeCount = count($objectsInDowntime) ?>
|
||||
<a href="<?= $inDowntimeLink ?>"
|
||||
title="<?php printf(
|
||||
$this->translate('List all hosts in downtime (%u)'),
|
||||
count($objectsInDowntime)
|
||||
); ?>">
|
||||
title="<?= sprintf(
|
||||
$this->translatePlural(
|
||||
'List %u host which is in downtime',
|
||||
'List %u hosts which are in downtime',
|
||||
$inDowntimeCount
|
||||
),
|
||||
$inDowntimeCount
|
||||
) ?>">
|
||||
<?= $this->icon('plug') ?>
|
||||
<?= sprintf(
|
||||
$this->translatePlural(
|
||||
|
@ -133,10 +137,14 @@
|
|||
<?php if ($havingCommentsCount): ?>
|
||||
<h2>
|
||||
<a href="<?= $havingCommentsLink ?>"
|
||||
title="<?php printf(
|
||||
$this->translate('List all Comments (%u)'),
|
||||
count($objects->getComments())
|
||||
); ?>">
|
||||
title="<?= sprintf(
|
||||
$this->translatePlural(
|
||||
'List %u host having comments',
|
||||
'List %u hosts having comments',
|
||||
$havingCommentsLink
|
||||
),
|
||||
$havingCommentsLink
|
||||
) ?>">
|
||||
<?= $this->icon('comment') ?>
|
||||
<?= sprintf(
|
||||
$this->translatePlural(
|
||||
|
|
Loading…
Reference in New Issue