Browse Source

Merge pull request #1567 in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit '6f9175a2104461fc483604a8fce6fc717c03869a':
  REPORT-29539 && REPORT-29457
feature/big-screen
Hades 5 years ago
parent
commit
f9e87603b2
  1. 4
      designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java
  2. 3
      designer-base/src/main/java/com/fr/design/i18n/DesignI18nImpl.java

4
designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java

@ -404,6 +404,10 @@ public class EnvChangeEntrance {
* 处理异常
*/
public void dealEvnExceptionWhenStartDesigner() {
ProcessEventPipe eventPipe = FineProcessContext.getParentPipe();
if (eventPipe != null) {
eventPipe.fire(new CarryMessageEvent(ReportState.STOP.getValue()));
}
final EnvListPane envListPane = new EnvListPane();
envListPane.populateEnvManager(currentEnvName);
BasicDialog envListDialog = envListPane.showWindow(SwingUtilities.getWindowAncestor(DesignerContext.getDesignerFrame()));

3
designer-base/src/main/java/com/fr/design/i18n/DesignI18nImpl.java

@ -1,5 +1,6 @@
package com.fr.design.i18n;
import com.fr.design.DesignerEnvManager;
import com.fr.general.GeneralContext;
import com.fr.general.log.MessageFormatter;
import com.fr.locale.DesignI18nProvider;
@ -29,7 +30,7 @@ public class DesignI18nImpl implements DesignI18nProvider {
@Override
public String i18nText(String key) {
return localeManager.getLocalBundle(GeneralContext.getLocale()).getText(localeManager, key);
return localeManager.getLocalBundle(DesignerEnvManager.getEnvManager().getLanguage()).getText(localeManager, key);
}
@Override

Loading…
Cancel
Save