mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
update form_select() to use langs
This commit is contained in:
parent
a6c6491bca
commit
51b8c75d57
@ -43,11 +43,11 @@
|
||||
|
||||
var $country_array = array(
|
||||
' '=>'Select One',
|
||||
'AF'=>'AFGHANISTAN',
|
||||
'AL'=>'ALBANIA',
|
||||
'AF'=>'AFGHANISTAN',
|
||||
'AL'=>'ALBANIA',
|
||||
'DZ'=>'ALGERIA',
|
||||
'AS'=>'AMERICAN SAMOA',
|
||||
'AD'=>'ANDORRA',
|
||||
'AD'=>'ANDORRA',
|
||||
'AO'=>'ANGOLA',
|
||||
'AI'=>'ANGUILLA',
|
||||
'AQ'=>'ANTARCTICA',
|
||||
@ -155,8 +155,8 @@
|
||||
'KZ'=>'KAZAKSTAN',
|
||||
'KE'=>'KENYA',
|
||||
'KI'=>'KIRIBATI',
|
||||
'KP'=>'KOREA DEMOCRATIC PEOPLES REPUBLIC OF',
|
||||
'KR'=>'KOREA REPUBLIC OF',
|
||||
'KP'=>'KOREA, DEMOCRATIC PEOPLES REPUBLIC OF',
|
||||
'KR'=>'KOREA, REPUBLIC OF',
|
||||
'KW'=>'KUWAIT',
|
||||
'KG'=>'KYRGYZSTAN',
|
||||
'LA'=>'LAO PEOPLES DEMOCRATIC REPUBLIC',
|
||||
@ -614,7 +614,7 @@
|
||||
reset($this->country_array);
|
||||
while(list($key,$value) = each($this->country_array))
|
||||
{
|
||||
$str .= ' <option value="'.$key.'"'.($selected == $key?' selected':'').'>'.$value.'</option>'."\n";
|
||||
$str .= ' <option value="'.$key.'"'.($selected == $key?' selected':'') . '>'.lang($value).'</option>'."\n";
|
||||
}
|
||||
$str .= '</select>'."\n";
|
||||
return $str;
|
||||
|
Loading…
Reference in New Issue
Block a user