From 6aa86facb573eb0ff833931ba9f94405dc2ccd50 Mon Sep 17 00:00:00 2001 From: sjeffen Date: Sat, 4 Mar 2017 22:47:51 +0100 Subject: [PATCH] IDEMPIERE-3311 cph::erp language of log in process dialog --- .../src/org/adempiere/webui/panel/LoginPanel.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java index 749804d373..ed8a37c440 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java @@ -528,6 +528,16 @@ public class LoginPanel extends Window implements EventListener Env.verifyLanguage(ctx, language); Env.setContext(ctx, Env.LANGUAGE, language.getAD_Language()); Env.setContext(ctx, AEnv.LOCALE, language.getLocale().toString()); + + //cph::erp added this in order to get the processing dialog in the correct language + Locale locale = language.getLocale(); + try { + Clients.reloadMessages(locale); + } catch (IOException e) { + logger.log(Level.WARNING, e.getLocalizedMessage(), e); + } + Locales.setThreadLocal(locale); + // cph::erp end return language; } /**