Minor change to allow showing user selected system languages on login list

This commit is contained in:
Carlos Ruiz 2011-03-26 01:50:57 -05:00
parent d442d2fe55
commit b45a2a6fb8
2 changed files with 3 additions and 1 deletions

View File

@ -1073,6 +1073,8 @@ public final class Env
while (rs.next())
{
String AD_Language = rs.getString(1);
// called to add the language to supported in case it's not added
Language.getLanguage(AD_Language);
AD_Languages.add(AD_Language);
}
}

View File

@ -287,8 +287,8 @@ public class LoginPanel extends Window implements EventListener
// Update Language List
lstLanguage.getItems().clear();
String[] availableLanguages = Language.getNames();
ArrayList<String> supported = Env.getSupportedLanguages();
String[] availableLanguages = Language.getNames();
for (String langName : availableLanguages) {
Language language = Language.getLanguage(langName);
if (!language.isBaseLanguage()) {