redid refactor to pluralize output
This commit is contained in:
parent
3d3391bea7
commit
641ba717cf
1 changed files with 7 additions and 14 deletions
|
@ -6,17 +6,10 @@ if ($this->poolCount) { ?>
|
||||||
<div class='sp_text_font sp_text_font_bold'>
|
<div class='sp_text_font sp_text_font_bold'>
|
||||||
<span id='sp_pool_count' class='sp_text_font sp_text_font_bold'>
|
<span id='sp_pool_count' class='sp_text_font sp_text_font_bold'>
|
||||||
<?php
|
<?php
|
||||||
if ($this->poolCount > 1) {
|
if ($this->poolCount > 0) {
|
||||||
echo $this->poolCount;
|
echo $this->poolCount;
|
||||||
|
echo ngettext(" file meets the criteria", " files meets the criteria", $this->poolCount);
|
||||||
?>
|
?>
|
||||||
<?php echo _("files meet the criteria") ?>
|
|
||||||
</span>
|
|
||||||
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
|
||||||
<?php
|
|
||||||
} else if ($this->poolCount == 1) {
|
|
||||||
echo $this->poolCount;
|
|
||||||
?>
|
|
||||||
<?php echo _("file meets the criteria") ?>
|
|
||||||
</span>
|
</span>
|
||||||
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue