1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

More language updates

git-svn-id: file:///svn/phpbb/trunk@1368 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-11-19 14:12:09 +00:00
parent 4f387057ca
commit 37daf8a717
7 changed files with 83 additions and 64 deletions

View File

@@ -773,48 +773,17 @@ function style_select($default_style, $select_name = "style", $dirname = "templa
//
function tz_select($default, $select_name = 'timezone')
{
global $sys_timezone;
global $sys_timezone, $lang;
if(!isset($default))
if( !isset($default) )
{
$default == $sys_timezone;
}
$tz_select = "<select name=\"$select_name\">";
$tz_array = array(
"-12" => "(GMT -12:00 hours) Eniwetok, Kwajalein",
"-11" => "(GMT -11:00 hours) Midway Island, Samoa",
"-10" => "(GMT -10:00 hours) Hawaii",
"-9" => "(GMT -9:00 hours) Alaska",
"-8" => "(GMT -8:00 hours) Pacific Time (US &amp; Canada)",
"-7" => "(GMT -7:00 hours) Mountain Time (US &amp; Canada)",
"-6" => "(GMT -6:00 hours) Central Time (US &amp; Canada), Mexico City",
"-5" => "(GMT -5:00 hours) Eastern Time (US &amp; Canada), Bogota, Lima, Quito",
"-4" => "(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz",
"-3.5" => "(GMT -3:30 hours) Newfoundland",
"-3" => "(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown",
"-2" => "(GMT -2:00 hours) Mid-Atlantic, Ascension Is., St. Helena, ",
"-1" => "(GMT -1:00 hours) Azores, Cape Verde Islands",
"0" => "(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia",
"1" => "(GMT +1:00 hours) Berlin, Brussels, Copenhagen, Madrid, Paris, Rome",
"2" => "(GMT +2:00 hours) Kaliningrad, South Africa, Warsaw",
"3" => "(GMT +3:00 hours) Baghdad, Riyadh, Moscow, Nairobi",
"3.5" => "(GMT +3:30 hours) Tehran",
"4" => "(GMT +4:00 hours) Abu Dhabi, Baku, Muscat, Tbilisi",
"4.5" => "(GMT +4:30 hours) Kabul",
"5" => "(GMT +5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent",
"5.5" => "(GMT +5:30 hours) Bombay, Calcutta, Madras, New Delhi",
"6" => "(GMT +6:00 hours) Almaty, Colombo, Dhaka",
"7" => "(GMT +7:00 hours) Bangkok, Hanoi, Jakarta",
"8" => "(GMT +8:00 hours) Beijing, Hong Kong, Perth, Singapore, Taipei",
"9" => "(GMT +9:00 hours) Osaka, Sapporo, Seoul, Tokyo, Yakutsk",
"9.5" => "(GMT +9:30 hours) Adelaide, Darwin",
"10" => "(GMT +10:00 hours) Melbourne, Papua New Guinea, Sydney, Vladivostok",
"11" => "(GMT +11:00 hours) Magadan, New Caledonia, Solomon Islands",
"12" => "(GMT +12:00 hours) Auckland, Wellington, Fiji, Marshall Island");
while( list($offset, $zone) = each($tz_array) )
while( list($offset, $zone) = each($lang['tz']) )
{
$selected = ($offset == $default) ? " selected=\"selected\"" : "";
$selected = ( $offset == $default ) ? " selected=\"selected\"" : "";
$tz_select .= "\t<option value=\"$offset\"$selected>$zone</option>";
}
$tz_select .= "</select>";