Heng Sin Low 2009-05-20 08:10:48 +00:00
parent 2c902cc459
commit 682dd0cca4
1 changed files with 13 additions and 0 deletions

View File

@ -212,6 +212,19 @@ public class LoginPanel extends Window implements EventListener
Language language = Language.getLanguage(langName);
lstLanguage.appendItem(langName, language.getAD_Language());
}
//set base language
String baseLanguage = Language.getBaseLanguage().getName();
for(int i = 0; i < lstLanguage.getItemCount(); i++)
{
Comboitem li = lstLanguage.getItemAtIndex(i);
if(li.getLabel().equals(baseLanguage))
{
lstLanguage.setSelectedIndex(i);
languageChanged(li.getLabel());
break;
}
}
}
public void onEvent(Event event)