Fix [ 1888786 ] Menu in Spanish not appearing the first time
This commit is contained in:
parent
93a64eeea6
commit
b4ab1d1cb4
|
@ -89,13 +89,6 @@ public class AdempiereWebUI extends Window implements EventListener
|
|||
{
|
||||
loginDesktop = null;
|
||||
this.getChildren().clear();
|
||||
appDesktop = new Desktop();
|
||||
appDesktop.setParent(this);
|
||||
appDesktop.setClientInfo(clientInfo);
|
||||
|
||||
this.setWidth("100%");
|
||||
this.setHeight("100%");
|
||||
this.appendChild(appDesktop);
|
||||
|
||||
Properties ctx = Env.getCtx();
|
||||
String langLogin = Env.getContext(ctx, Env.LANGUAGE);
|
||||
|
@ -103,10 +96,20 @@ public class AdempiereWebUI extends Window implements EventListener
|
|||
langLogin = langSession;
|
||||
Env.setContext(ctx, Env.LANGUAGE, langSession);
|
||||
}
|
||||
|
||||
// Validate language
|
||||
Language language = Language.getLanguage(langLogin);
|
||||
Env.verifyLanguage(ctx, language);
|
||||
Env.setContext(ctx, Env.LANGUAGE, language.getAD_Language()); //Bug
|
||||
|
||||
|
||||
appDesktop = new Desktop();
|
||||
appDesktop.setParent(this);
|
||||
appDesktop.setClientInfo(clientInfo);
|
||||
|
||||
this.setWidth("100%");
|
||||
this.setHeight("100%");
|
||||
this.appendChild(appDesktop);
|
||||
|
||||
|
||||
// Create adempiere Session - user id in ctx
|
||||
Session currSess = Executions.getCurrent().getDesktop().getSession();
|
||||
|
|
Loading…
Reference in New Issue