From b089747774b495126bf4e2b4ec0b63bd0c2af5c4 Mon Sep 17 00:00:00 2001 From: Safa AlFulaij Date: Thu, 14 Jul 2016 09:52:26 +0300 Subject: 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 Signed-off-by: Lukas Fleischer --- web/template/pkgreq_results.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/template/pkgreq_results.php') diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php index 24ee877a..b27963be 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 { -- cgit v1.2.3-24-g4f1b