Browse Source

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

* commit '513015bd40871018ab149931a7b56f00966934d4':
  REPORT-15185 设计器打开启动画面修改 添加英文版
bugfix/10.0
Hades 6 years ago
parent
commit
3bc27f971f
  1. 15
      designer-realize/src/main/java/com/fr/start/SplashContext.java
  2. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash_10_en.gif
  3. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash_10_jp.gif

15
designer-realize/src/main/java/com/fr/start/SplashContext.java

@ -24,7 +24,7 @@ import java.util.concurrent.TimeUnit;
public class SplashContext { public class SplashContext {
public static final String SPLASH_PATH = getSplashPath(); public static final String SPLASH_PATH = getSplashPath();
public static final String SPLASH_CACHE_NAME = getSplashCacheName(); public static final String SPLASH_CACHE_NAME = SPLASH_PATH.substring(SPLASH_PATH.lastIndexOf("/") + 1);
private static final int FETCH_ONLINE_MAX_TIMES = 50; private static final int FETCH_ONLINE_MAX_TIMES = 50;
private static final SplashContext SPLASH_CONTEXT = new SplashContext(); private static final SplashContext SPLASH_CONTEXT = new SplashContext();
@ -166,18 +166,13 @@ public class SplashContext {
} }
private static String getSplashPath() { private static String getSplashPath() {
if (DesignerEnvManager.getEnvManager().getLanguage().equals(Locale.JAPAN)) { Locale locale = DesignerEnvManager.getEnvManager().getLanguage();
if (Locale.US.equals(locale) || Locale.KOREA.equals(locale)) {
return "/com/fr/design/images/splash_10_en.gif";
} else if (Locale.JAPAN.equals(locale)) {
return "/com/fr/design/images/splash_10_jp.gif"; return "/com/fr/design/images/splash_10_jp.gif";
} else { } else {
return "/com/fr/design/images/splash_10.gif"; return "/com/fr/design/images/splash_10.gif";
} }
} }
private static String getSplashCacheName() {
if (DesignerEnvManager.getEnvManager().getLanguage().equals(Locale.JAPAN)) {
return "splash_10_jp.gif";
} else {
return "splash_10.gif";
}
}
} }

BIN
designer-realize/src/main/resources/com/fr/design/images/splash_10_en.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash_10_jp.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 MiB

After

Width:  |  Height:  |  Size: 16 MiB

Loading…
Cancel
Save