Project

General

Profile

« Previous | Next » 

Revision 49683e45

Added by Phil Davis over 8 years ago

Etc/GMT timezone text using ngettext()

(cherry picked from commit 88de4ab06c8a330a3cedf474b3e218a941f6db66)

View differences:

src/usr/local/www/system.php
144 144

  
145 145
	switch ($direction) {
146 146
	case '-':
147
		$direction_str = gettext('AHEAD');
147
		$direction_str = gettext('AHEAD of');
148 148
		break;
149 149
	case '+':
150 150
		$direction_str = gettext('BEHIND');
......
154 154
	}
155 155

  
156 156
	$hr_offset = substr($desc, 8);
157
	$plural = $hr_offset == "1" ? "" : "s";
158

  
159
	$timezonedesc[$idx] = $desc . " " . sprintf(gettext(
160
	    "(%s hour%s %s GMT)"), $hr_offset, $plural, $direction_str);
157
	$timezonedesc[$idx] = $desc . " " .
158
	    sprintf(ngettext('(%1$s hour %2$s GMT)', '(%1$s hours %2$s GMT)', $hr_offset), $hr_offset, $direction_str);
161 159
}
162 160

  
163 161
$multiwan = false;

Also available in: Unified diff