forked from extern/egroupware
made some more messages from the users-prefs translatable
This commit is contained in:
parent
802d6c62cc
commit
c280a1ab7e
@ -283,6 +283,19 @@
|
||||
'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)
|
||||
{
|
||||
$s = '<select name="' . $name . '">';
|
||||
|
@ -82,6 +82,14 @@
|
||||
$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);
|
||||
|
||||
// preference.php handles this function
|
||||
|
Loading…
Reference in New Issue
Block a user