Browse Source

REPORT-15332 有一个国际化调用比较早,需要在这边就设置好locale,由于后台GeneralContext默认是China

bugfix/10.0
zack 6 years ago
parent
commit
89df85b9a8
  1. 2
      designer-base/src/main/java/com/fr/design/DesignerEnvManager.java

2
designer-base/src/main/java/com/fr/design/DesignerEnvManager.java

@ -177,6 +177,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
public static DesignerEnvManager getEnvManager(boolean needCheckEnv) {
if (designerEnvManager == null) {
designerEnvManager = new DesignerEnvManager();
//REPORT-15332有一个国际化调用比较早,需要在这边就设置好locale,由于后台GeneralContext默认是China
GeneralContext.setLocale(designerEnvManager.getLanguage());
try {
XMLTools.readFileXML(designerEnvManager, designerEnvManager.getDesignerEnvFile());
} catch (Exception e) {

Loading…
Cancel
Save