|
|
@@ -22,7 +22,9 @@ public class ConfigMgr : Singleton<ConfigMgr>
|
|
|
{
|
|
|
if (m_strCurLangKey != value)
|
|
|
{
|
|
|
- m_bInitCSVFinished = false;
|
|
|
+ //m_bInitCSVFinished = false;
|
|
|
+ m_strCurLangKey = value;
|
|
|
+ //I18N
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -357,16 +359,22 @@ public class ConfigMgr : Singleton<ConfigMgr>
|
|
|
public class I18N
|
|
|
{
|
|
|
static string m_tableName = "";
|
|
|
+ static string m_curLangKey = "";
|
|
|
static string tableName
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(m_tableName))
|
|
|
+ if (string.IsNullOrEmpty(m_tableName) || m_curLangKey != ConfigMgr.CurLangKey)
|
|
|
+ {
|
|
|
m_tableName = string.Format("LanguagePackage{0}", ConfigMgr.CurLangKey);
|
|
|
+ m_curLangKey = ConfigMgr.CurLangKey;
|
|
|
+ }
|
|
|
+
|
|
|
return m_tableName;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
public static string T(string key)
|
|
|
{
|
|
|
string result = key;
|