Browse Source

国际化信息读取

master
richie 8 years ago
parent
commit
50184e1b53
  1. 13
      designer_base/src/com/fr/design/actions/file/LocalePane.java

13
designer_base/src/com/fr/design/actions/file/LocalePane.java

@ -158,7 +158,7 @@ public class LocalePane extends BasicPane {
} }
} }
public String readText(List<ResourceBundle> rbs, String key) { private String readText(List<ResourceBundle> rbs, String key) {
for (ResourceBundle rb : rbs) { for (ResourceBundle rb : rbs) {
if (rb.containsKey(key)) { if (rb.containsKey(key)) {
return rb.getString(key); return rb.getString(key);
@ -207,17 +207,6 @@ public class LocalePane extends BasicPane {
} }
} }
private Properties loadLocaleProperties(String name) {
Properties properties = new Properties();
InputStream inputStream = IOUtils.readResource("/com/fr/general/locale/" + name);
try {
properties.load(inputStream);
} catch (IOException e) {
FRLogger.getLogger().error(e.getMessage());
}
return properties;
}
/** /**
* 保存当前编辑的国际化 * 保存当前编辑的国际化
* *

Loading…
Cancel
Save