Skip to content

Commit

Permalink
修复从zip资源文件加载资源找不到多语言文件的问题
Browse files Browse the repository at this point in the history
如果 GetData 参数为 m_pStrResourcePath + language + L"\\gdstrings.ini"
则得到的语言路径为:"resources/themes/default/lang/zh_CN/gdstrings.ini"
实则应该为:"resources/lang/zh_CN/gdstrings.ini"
  • Loading branch information
quanzhuo committed Jul 30, 2019
1 parent babf0c2 commit d71b4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool_kits/duilib/Core/GlobalManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void GlobalManager::Startup(const std::wstring& strResourcePath, const CreateCon

// 加载多语言文件,如果使用了资源压缩包则从内存中加载语言文件
if (g_hzip) {
HGLOBAL hGlobal = GetData(m_pStrResourcePath + language + L"\\gdstrings.ini");
HGLOBAL hGlobal = GetData(strResourcePath + language + L"\\gdstrings.ini");
if (hGlobal) {
ui::MutiLanSupport::GetInstance()->LoadStringTable(hGlobal);
GlobalFree(hGlobal);
Expand Down

0 comments on commit d71b4e9

Please sign in to comment.