From 5332d1402f268d33c6ba988e3738cc50199ea179 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 2 Jun 2009 09:28:25 +0000 Subject: [PATCH] https://sourceforge.net/tracker/?func=detail&aid=2798670&group_id=176962&atid=955896 - Calendar always in English --- .../WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java b/zkwebui/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java index 098a2f90a1..474040fc02 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java @@ -49,6 +49,8 @@ import org.zkoss.zhtml.Table; import org.zkoss.zhtml.Td; import org.zkoss.zhtml.Tr; import org.zkoss.zk.au.out.AuFocus; +import org.zkoss.zk.au.out.AuScript; +import org.zkoss.zk.fn.ZkFns; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.WrongValueException; import org.zkoss.zk.ui.event.Event; @@ -69,7 +71,7 @@ import org.zkoss.zul.Image; public class LoginPanel extends Window implements EventListener { /** - * + * */ private static final long serialVersionUID = -2243984359460922023L; private static final String RESOURCE = "org.compiere.apps.ALoginRes"; @@ -318,6 +320,8 @@ public class LoginPanel extends Window implements EventListener Env.setContext(ctx, UserPreference.LANGUAGE_NAME, language.getName()); // Elaine 2009/02/06 Locales.setThreadLocal(language.getLocale()); + + Clients.response("zkLocaleJavaScript", new AuScript(null, ZkFns.outLocaleJavaScript())); } } }