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
@@ -216,7 +216,7 @@ void CMachineDlg::OnReceiveComplete()
|
||||
DeleteList();
|
||||
|
||||
if (m_ContextObject->m_DeCompressionBuffer.GetBufferLen() <= 2) {
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_T("无权限或无记录...")), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("无权限或无记录...")), 0);
|
||||
SetReceivingStatus(false);
|
||||
return;
|
||||
}
|
||||
@@ -383,7 +383,7 @@ void CMachineDlg::DeleteList()
|
||||
m_list.DeleteColumn(0);
|
||||
}
|
||||
if (!m_bIsClosed)
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_T("请等待数据返回...")), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("请等待数据返回...")), 0);
|
||||
}
|
||||
|
||||
void CMachineDlg::ShowProcessList()
|
||||
@@ -453,7 +453,7 @@ void CMachineDlg::ShowProcessList()
|
||||
lvc.cchTextMax = str.GetLength();
|
||||
m_list.SetColumn(7, &lvc);
|
||||
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -493,7 +493,7 @@ void CMachineDlg::ShowWindowsList()
|
||||
lvc.cchTextMax = str.GetLength();
|
||||
m_list.SetColumn(2, &lvc);
|
||||
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -545,7 +545,7 @@ void CMachineDlg::ShowNetStateList()
|
||||
}
|
||||
m_list.SetItemData(i, (DWORD_PTR)new ListItem(m_list, i, pid));
|
||||
}
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -571,7 +571,7 @@ void CMachineDlg::ShowSoftWareList()
|
||||
}
|
||||
m_list.SetItemData(i, (DWORD_PTR)new ListItem(m_list, i));
|
||||
}
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
void CMachineDlg::ShowIEHistoryList()
|
||||
@@ -593,7 +593,7 @@ void CMachineDlg::ShowIEHistoryList()
|
||||
dwOffset += sizeof(Browsinghistory);
|
||||
m_list.SetItemData(i, (DWORD_PTR)new ListItem(m_list, i));
|
||||
}
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
void CMachineDlg::ShowFavoritesUrlList()
|
||||
@@ -615,7 +615,7 @@ void CMachineDlg::ShowFavoritesUrlList()
|
||||
}
|
||||
m_list.SetItemData(i, (DWORD_PTR)new ListItem(m_list, i));
|
||||
}
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
void CMachineDlg::ShowServiceList()
|
||||
@@ -710,7 +710,7 @@ void CMachineDlg::ShowTaskList()
|
||||
break;
|
||||
}
|
||||
}
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
void CMachineDlg::ShowHostsList()
|
||||
@@ -730,7 +730,7 @@ void CMachineDlg::ShowHostsList()
|
||||
m_list.SetItemData(i, (DWORD_PTR)new ListItem(m_list, i));
|
||||
i++;
|
||||
}
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString("接收数据完成"), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("接收数据完成")), 0);
|
||||
}
|
||||
|
||||
void CMachineDlg::OnSize(UINT nType, int cx, int cy)
|
||||
@@ -968,7 +968,7 @@ void CMachineDlg::ShowProcessList_menu()
|
||||
BYTE* lpBuffer = NULL;
|
||||
HANDLE hFile = CreateFile(dlg.Str_loacal, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (hFile == INVALID_HANDLE_VALUE) {
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_T("打开文件失败...")), 0);
|
||||
PostMessage(WM_SHOW_MSG, (WPARAM)new CString(_TR("打开文件失败...")), 0);
|
||||
} else {
|
||||
p_InjectData->datasize = GetFileSize(hFile, NULL);
|
||||
int allsize = p_InjectData->datasize + sizeof(InjectData)+1;
|
||||
|
||||
Reference in new issue
Block a user