made some more messages from the users-prefs translatable

This commit is contained in:
Ralf Becker 2003-03-18 17:05:42 +00:00
parent 802d6c62cc
commit c280a1ab7e
2 changed files with 21 additions and 0 deletions

View File

@ -283,6 +283,19 @@
'ZW'=>'ZIMBABWE' 'ZW'=>'ZIMBABWE'
); );
function sbox()
{
foreach ($this->country_array as $key => $name)
{
$translated = lang($name);
if ($translated != $name.'*')
{
$this->country_array[$key] = $translated;
}
}
asort($this->country_array);
}
function hour_formated_text($name, $selected = 0) function hour_formated_text($name, $selected = 0)
{ {
$s = '<select name="' . $name . '">'; $s = '<select name="' . $name . '">';

View File

@ -82,6 +82,14 @@
$langs[$GLOBALS['phpgw']->db->f('lang')] = $db2->f('lang_name'); $langs[$GLOBALS['phpgw']->db->f('lang')] = $db2->f('lang_name');
} }
} }
foreach ($langs as $key => $name) // if we have a translation use it
{
$trans = lang($name);
if ($trans != $name . '*')
{
$langs[$key] = $trans;
}
}
create_select_box('Language','lang',$langs); create_select_box('Language','lang',$langs);
// preference.php handles this function // preference.php handles this function