diff --git a/tools/apps/hgjson/CDlgLang.cpp b/tools/apps/hgjson/CDlgLang.cpp index abdf578..bb5cdc9 100644 --- a/tools/apps/hgjson/CDlgLang.cpp +++ b/tools/apps/hgjson/CDlgLang.cpp @@ -786,7 +786,7 @@ void CDlgLang::OnCbnSelchangeLanguage() } } - ::MessageBoxW(m_hWnd, L"纯文本翻译对照,请以中文(简体)语言在第一列(如有空格请加英文双引号),其它语言为空格以后的第二列。", L"提示", MB_OK | MB_ICONINFORMATION); + ::MessageBoxW(m_hWnd, L"\u7EAF\u6587\u672C\u7FFB\u8BD1\u5BF9\u7167\uFF0C\u8BF7\u4EE5\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09\u8BED\u8A00\u5728\u7B2C\u4E00\u5217\uFF08\u5982\u6709\u7A7A\u683C\u8BF7\u52A0\u82F1\u6587\u53CC\u5F15\u53F7\uFF09\uFF0C\u5176\u5B83\u8BED\u8A00\u4E3A\u7A7A\u683C\u4EE5\u540E\u7684\u7B2C\u4E8C\u5217\u3002", L"\u63D0\u793A", MB_OK | MB_ICONINFORMATION); std::string bom(""); std::wstring cont(L""), line(L""), hz(L""), lan(L""); @@ -867,6 +867,10 @@ void CDlgLang::OnCbnSelchangeLanguage() list_.SetItemText(item, 2, v.hz.c_str()); } } + else + { + select_code_page(cur_cp_); + } GetDlgItem(IDC_BUTTON_ADD)->EnableWindow(cur_cp_ == 936); GetDlgItem(IDC_BUTTON_ADD_FILE)->EnableWindow(cur_cp_ == 936); } diff --git a/tools/solution/Release/hgjson.exe b/tools/solution/Release/hgjson.exe index 9d986dd..e51eedd 100644 Binary files a/tools/solution/Release/hgjson.exe and b/tools/solution/Release/hgjson.exe differ