Minor change to allow showing user selected system languages on login list
This commit is contained in:
parent
d442d2fe55
commit
b45a2a6fb8
|
@ -1073,6 +1073,8 @@ public final class Env
|
||||||
while (rs.next())
|
while (rs.next())
|
||||||
{
|
{
|
||||||
String AD_Language = rs.getString(1);
|
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);
|
AD_Languages.add(AD_Language);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,8 +287,8 @@ public class LoginPanel extends Window implements EventListener
|
||||||
|
|
||||||
// Update Language List
|
// Update Language List
|
||||||
lstLanguage.getItems().clear();
|
lstLanguage.getItems().clear();
|
||||||
String[] availableLanguages = Language.getNames();
|
|
||||||
ArrayList<String> supported = Env.getSupportedLanguages();
|
ArrayList<String> supported = Env.getSupportedLanguages();
|
||||||
|
String[] availableLanguages = Language.getNames();
|
||||||
for (String langName : availableLanguages) {
|
for (String langName : availableLanguages) {
|
||||||
Language language = Language.getLanguage(langName);
|
Language language = Language.getLanguage(langName);
|
||||||
if (!language.isBaseLanguage()) {
|
if (!language.isBaseLanguage()) {
|
||||||
|
|
Loading…
Reference in New Issue