|
From: Paul S. O. <ps...@us...> - 2001-11-19 14:12:12
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv29531/includes
Modified Files:
functions.php
Log Message:
More language updates
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -r1.81 -r1.82
*** functions.php 2001/11/16 17:27:36 1.81
--- functions.php 2001/11/19 14:12:08 1.82
***************
*** 774,819 ****
function tz_select($default, $select_name = 'timezone')
{
! global $sys_timezone;
! 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 & Canada)",
- "-7" => "(GMT -7:00 hours) Mountain Time (US & Canada)",
- "-6" => "(GMT -6:00 hours) Central Time (US & Canada), Mexico City",
- "-5" => "(GMT -5:00 hours) Eastern Time (US & 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) )
{
! $selected = ($offset == $default) ? " selected=\"selected\"" : "";
$tz_select .= "\t<option value=\"$offset\"$selected>$zone</option>";
}
--- 774,788 ----
function tz_select($default, $select_name = 'timezone')
{
! global $sys_timezone, $lang;
! if( !isset($default) )
{
$default == $sys_timezone;
}
$tz_select = "<select name=\"$select_name\">";
! while( list($offset, $zone) = each($lang['tz']) )
{
! $selected = ( $offset == $default ) ? " selected=\"selected\"" : "";
$tz_select .= "\t<option value=\"$offset\"$selected>$zone</option>";
}
|