Fix: Translate remaining server UI strings missing _TR/_L
Wrap the last untranslated Chinese UI strings so English mode stops showing raw Chinese. Format strings passed to sprintf/wsprintf and the status-bar SendMessageTimeout calls now go through _TRF, and the CString/PostMessage literals plus a few member-initializer and Compare values go through _TR/_L. Covers the wallet validation message, the SOCKS proxy connection log lines, the file-manager status bar, and the machine-info progress messages. Add the 24 corresponding entries to lang/en_US.ini and lang/zh_TW.ini (GBK), keeping the escaped-format-string key style. The Yes/No/Desktop/ Recent keys already existed, so the BuildDlg and CFileManagerDlg compare fixes reuse them. Co-Authored-By: deepseek-v4-pro
This commit is contained in:
1 parent
dd845823b6
commit
221617fe02
10 files changed
+84
-36
No files matched your search
@@ -644,22 +644,22 @@ void CFileManagerDlg::OnReceiveComplete()
|
||||
break;
|
||||
case TOKEN_FILE_SEARCHPLUS_NONTFS: {
|
||||
DWORD_PTR dwResult;
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2,(LPARAM)_T(" 驱动盘非NTFS格式"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2,(LPARAM)_TRF(" 驱动盘非NTFS格式"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
}
|
||||
break;
|
||||
case TOKEN_FILE_SEARCHPLUS_HANDLE: {
|
||||
DWORD_PTR dwResult;
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2, (LPARAM)_T("需要管理员权限运行"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2, (LPARAM)_TRF("需要管理员权限运行"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
}
|
||||
break;
|
||||
case TOKEN_FILE_SEARCHPLUS_INITUSN: {
|
||||
DWORD_PTR dwResult;
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2, (LPARAM)_T("初始化日志文件失败"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2, (LPARAM)_TRF("初始化日志文件失败"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
}
|
||||
break;
|
||||
case TOKEN_FILE_SEARCHPLUS_GETUSN: {
|
||||
DWORD_PTR dwResult;
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2, (LPARAM)_T("获取日志文件失败"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2, (LPARAM)_TRF("获取日志文件失败"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
}
|
||||
break;
|
||||
case TOKEN_FILE_SEARCHPLUS_NUMBER: {
|
||||
@@ -764,13 +764,13 @@ void CFileManagerDlg::OnDblclkListRemotedriver(NMHDR* pNMHDR, LRESULT* pResult)
|
||||
|
||||
int nItem = m_list_remote_driver.GetSelectionMark();
|
||||
CString directory = m_list_remote_driver.GetItemText(nItem, 0);
|
||||
if (directory.Compare(_T("桌面")) == 0) {
|
||||
if (directory.Compare(_L(_T("桌面"))) == 0) {
|
||||
m_Remote_Directory_ComboBox.SetWindowText(m_strDesktopPath);
|
||||
m_list_remote.SetSelectionMark(-1);
|
||||
GetRemoteFileList();
|
||||
return;
|
||||
}
|
||||
if (directory.Compare(_T("最近")) == 0) {
|
||||
if (directory.Compare(_L(_T("最近"))) == 0) {
|
||||
BYTE byToken = COMMAND_FILE_RECENT;
|
||||
m_ContextObject->Send2Client(&byToken, 1);
|
||||
return;
|
||||
@@ -1482,10 +1482,10 @@ void CFileManagerDlg::EndLocalRecvFile()
|
||||
DWORD_PTR dwResult;
|
||||
if (m_bIsStop) {
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2,
|
||||
(LPARAM)_T(" 取消下载"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
(LPARAM)_TRF(" 取消下载"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
} else {
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2,
|
||||
(LPARAM)_T(" 全部完成"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
(LPARAM)_TRF(" 全部完成"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
}
|
||||
m_bIsStop = false;
|
||||
} else {
|
||||
@@ -1516,10 +1516,10 @@ void CFileManagerDlg::EndLocalUploadFile()
|
||||
DWORD_PTR dwResult;
|
||||
if (m_bIsStop) {
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2,
|
||||
(LPARAM)_T(" 取消上传"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
(LPARAM)_TRF(" 取消上传"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
} else {
|
||||
SendMessageTimeout(m_wndStatusBar.GetSafeHwnd(), SB_SETTEXT, 2,
|
||||
(LPARAM)_T(" 全部完成"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
(LPARAM)_TRF(" 全部完成"), SMTO_ABORTIFHUNG | SMTO_BLOCK, 500, &dwResult);
|
||||
}
|
||||
m_bIsStop = false;
|
||||
DRIVE_CAZ = TRUE;
|
||||
|
||||
Reference in new issue
Block a user