Commit eea8cf07 刘韬

1

1 个父辈 849e118b
...@@ -106,7 +106,9 @@ namespace HZH_Controls ...@@ -106,7 +106,9 @@ namespace HZH_Controls
{ {
if (OpenResourceLog) if (OpenResourceLog)
{ {
if (!LangMap["zh-CN"].ContainsKey(id) && checkInterid(id)) if (LangMap.ContainsKey("zh-CN") && !LangMap["zh-CN"].ContainsKey(id) && checkInterid(id))
LOG.Info("No Res id:" + id + "\t" + defaultStr);
else if (LangMap.ContainsKey("en-US") && !LangMap["en-US"].ContainsKey(id) && checkInterid(id))
LOG.Info("No Res id:" + id + "\t" + defaultStr); LOG.Info("No Res id:" + id + "\t" + defaultStr);
} }
} }
...@@ -119,6 +121,7 @@ namespace HZH_Controls ...@@ -119,6 +121,7 @@ namespace HZH_Controls
} }
static CodeResourceControl() static CodeResourceControl()
{ {
getLangRes("zh-CN");
} }
private static bool getLangRes(string lang) { private static bool getLangRes(string lang) {
if (!LangMap.ContainsKey(lang)) { if (!LangMap.ContainsKey(lang)) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!