summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorSafa AlFulaij <safa1996alfulaij@gmail.com>2016-07-14 09:52:26 +0300
committerLukas Fleischer <lfleischer@archlinux.org>2016-07-24 18:51:12 +0200
commitb089747774b495126bf4e2b4ec0b63bd0c2af5c4 (patch)
treede513d552e99311eb1d9685672451a9b25f05eba /web/template
parente55b529813feb806fd139ccbf47be87970d95b74 (diff)
downloadaurweb-b089747774b495126bf4e2b4ec0b63bd0c2af5c4.tar.xz
Fix plural string
Even though the singular form never occurs, we need to use _n() here to obtain the correct behavior for languages with multiple plural forms. Signed-off-by: Safa AlFulaij <safa1996alfulaij@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkgreq_results.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php
index 24ee877..b27963b 100644
--- a/web/template/pkgreq_results.php
+++ b/web/template/pkgreq_results.php
@@ -39,7 +39,7 @@
if (!$due) {
$time_left = $idle_time - (time() - intval($row['RequestTS']));
if ($time_left > 48 * 3600) {
- $time_left_fmt = __("~%d days left", round($time_left / (24 * 3600)));
+ $time_left_fmt = _n("~%d day left", "~%d days left", round($time_left / (24 * 3600)));
} elseif ($time_left > 3600) {
$time_left_fmt = _n("~%d hour left", "~%d hours left", round($time_left / 3600));
} else {