translate the monthnames and contries like the sbox-class

This commit is contained in:
Ralf Becker 2003-04-13 21:47:35 +00:00
parent 38c7e3d145
commit a9d53deafb

View File

@ -356,6 +356,21 @@
function select_widget($ui)
{
foreach($this->monthnames as $k => $name)
{
if ($name)
{
$this->monthnames[$k] = lang($name);
}
}
foreach($this->countrys as $k => $name)
{
if (($translated = lang($name)) != $name.'*')
{
$this->countrys[$k] = $translated;
}
}
asort($this->countrys);
}
function pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&$tmpl)