summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r--src/usr/local/www/system.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 9f2e8a9..0e52d9e 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -112,7 +112,7 @@ foreach ($timezonedesc as $idx => $desc) {
switch ($direction) {
case '-':
- $direction_str = gettext('AHEAD');
+ $direction_str = gettext('AHEAD of');
break;
case '+':
$direction_str = gettext('BEHIND');
@@ -122,10 +122,8 @@ foreach ($timezonedesc as $idx => $desc) {
}
$hr_offset = substr($desc, 8);
- $plural = $hr_offset == "1" ? "" : "s";
-
- $timezonedesc[$idx] = $desc . " " . sprintf(gettext(
- "(%s hour%s %s GMT)"), $hr_offset, $plural, $direction_str);
+ $timezonedesc[$idx] = $desc . " " .
+ sprintf(ngettext('(%1$s hour %2$s GMT)', '(%1$s hours %2$s GMT)', $hr_offset), $hr_offset, $direction_str);
}
$multiwan = false;
OpenPOWER on IntegriCloud