getWindowControl().setError(translate("login.notavailable", WebappHelper.getMailConfig("mailSupport")));
} else {
getWindowControl().setError(translate("login.error", WebappHelper.getMailConfig("mailSupport")));
}
} else if (cmd.equals(ACTION_BROWSERCHECK)) {
VelocityContainer browserCheck = createVelocityContainer("browsercheck");
browserCheck.contextPut("isBrowserAjaxReady", Boolean.valueOf(Settings.isBrowserOlatAjaxCertified(ureq)));
dmzPanel.pushContent(browserCheck);
} else if (cmd.equals(ACTION_COOKIES)) {
dmzPanel.pushContent(createVelocityContainer("cookies"));
} else if (cmd.equals(ACTION_ABOUT)) {
VelocityContainer aboutVC = createVelocityContainer("about");
// Add version info and licenses
Version v = (Version)CoreSpringFactory.getBean("org.olat.core.Version");
aboutVC.contextPut("version", v.getFullVersion());
aboutVC.contextPut("license", WebappHelper.getOlatLicense());
// Add translator and languages info
I18nManager i18nMgr = I18nManager.getInstance();
Set<String> enabledKeysSet = I18nModule.getEnabledLanguageKeys();
Map<String, String> langNames = new HashMap<String, String>();
Map<String, String> langTranslators = new HashMap<String, String>();
String[] enabledKeys = ArrayHelper.toArray(enabledKeysSet);
String[] names = new String[enabledKeys.length];
for (int i = 0; i < enabledKeys.length; i++) {
String key = enabledKeys[i];
String langName = i18nMgr.getLanguageInEnglish(key, I18nModule.isOverlayEnabled());
langNames.put(key, langName);
names[i] = langName;
String author = i18nMgr.getLanguageAuthor(key);
langTranslators.put(key, author);
}
ArrayHelper.sort(enabledKeys, names, true, true, true);
aboutVC.contextPut("enabledKeys", enabledKeys);
aboutVC.contextPut("langNames", langNames);
aboutVC.contextPut("langTranslators", langTranslators);
dmzPanel.pushContent(aboutVC);
} else if (cmd.equals(ACTION_ACCESSIBILITY)) {
VelocityContainer accessibilityVC = createVelocityContainer("accessibility");
dmzPanel.pushContent(accessibilityVC);
}
}
} else if (event.getCommand().equals(ACTION_LOGIN)) {
// show traditional login page