mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
e55b529813
commit
b089747774
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
||||||
if (!$due) {
|
if (!$due) {
|
||||||
$time_left = $idle_time - (time() - intval($row['RequestTS']));
|
$time_left = $idle_time - (time() - intval($row['RequestTS']));
|
||||||
if ($time_left > 48 * 3600) {
|
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) {
|
} elseif ($time_left > 3600) {
|
||||||
$time_left_fmt = _n("~%d hour left", "~%d hours left", round($time_left / 3600));
|
$time_left_fmt = _n("~%d hour left", "~%d hours left", round($time_left / 3600));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue