Use transplatePlural for hosts in downtime and hosts having comments tooltips

refs #8110
This commit is contained in:
Eric Lippmann 2015-02-02 16:48:13 +01:00
parent 1d99780a61
commit 4fc8850e25
1 changed files with 19 additions and 11 deletions

View File

@ -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(