Use ngettext.

This commit is contained in:
Michal Čihař
2010-05-25 14:26:05 +02:00
parent 93ca7a3544
commit 5dd82ed484
2 changed files with 2 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ else {
?> ?>
<tr> <tr>
<th align="center"> <th align="center">
<?php echo sprintf(__('%s table(s)'), PMA_formatNumber($num_tables, 0)); ?> <?php echo sprintf(_ngettext('%s table', '%s tables', $num_tables), PMA_formatNumber($num_tables, 0)); ?>
</th> </th>
<th align="right" nowrap="nowrap"> <th align="right" nowrap="nowrap">
<?php echo PMA_formatNumber($sum_entries, 0); ?> <?php echo PMA_formatNumber($sum_entries, 0); ?>

View File

@@ -477,7 +477,7 @@ if ($is_show_stats) {
if ($num_tables == 0) if ($num_tables == 0)
$tableReductionCount = 0; $tableReductionCount = 0;
echo sprintf(__('%s table(s)'), PMA_formatNumber($num_tables - $tableReductionCount, 0)); echo sprintf(_ngettext('%s table', '%s tables', $num_tables - $tableReductionCount), PMA_formatNumber($num_tables - $tableReductionCount, 0));
?> ?>
</th> </th>
<?php <?php