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> </h3>
<div> <div>
<a href="<?= $listAllLink ?>" title="<?php printf( <a href="<?= $listAllLink ?>" title="<?= sprintf(
$this->translate('List all Hosts (%u)'), $this->translate('List all %u hosts'),
count($objects) $hostCount
); ?>"> ); ?>">
<?= $this->translate('List all') ?> <?= $this->translate('List all') ?>
</a> </a>
@ -112,10 +112,14 @@
<h2> <h2>
<?php $inDowntimeCount = count($objectsInDowntime) ?> <?php $inDowntimeCount = count($objectsInDowntime) ?>
<a href="<?= $inDowntimeLink ?>" <a href="<?= $inDowntimeLink ?>"
title="<?php printf( title="<?= sprintf(
$this->translate('List all hosts in downtime (%u)'), $this->translatePlural(
count($objectsInDowntime) 'List %u host which is in downtime',
); ?>"> 'List %u hosts which are in downtime',
$inDowntimeCount
),
$inDowntimeCount
) ?>">
<?= $this->icon('plug') ?> <?= $this->icon('plug') ?>
<?= sprintf( <?= sprintf(
$this->translatePlural( $this->translatePlural(
@ -133,10 +137,14 @@
<?php if ($havingCommentsCount): ?> <?php if ($havingCommentsCount): ?>
<h2> <h2>
<a href="<?= $havingCommentsLink ?>" <a href="<?= $havingCommentsLink ?>"
title="<?php printf( title="<?= sprintf(
$this->translate('List all Comments (%u)'), $this->translatePlural(
count($objects->getComments()) 'List %u host having comments',
); ?>"> 'List %u hosts having comments',
$havingCommentsLink
),
$havingCommentsLink
) ?>">
<?= $this->icon('comment') ?> <?= $this->icon('comment') ?>
<?= sprintf( <?= sprintf(
$this->translatePlural( $this->translatePlural(