From 72e3184260aaee1ae89741d3e1fdba5780f2e174 Mon Sep 17 00:00:00 2001 From: "my-win\\anonymous" Date: Thu, 2 Jan 2025 22:00:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80bug=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、默认选中中文但没有翻译为中文 --- VoiletWindowsActionTool.exe | Bin 1473475 -> 1473475 bytes main.c | 30 ++++++++++++++++-------------- main.o | Bin 1390806 -> 1390870 bytes 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/VoiletWindowsActionTool.exe b/VoiletWindowsActionTool.exe index 4ebd396114f55458934d0e936abee233cb15c8d9..7aaf2cdc1efe7a315b1b8174718e82bff2a9fa24 100644 GIT binary patch delta 4730 zcmb7HdsI}_8sFcU86L_o2%N+4eu#_ zmg#;*wO8rrucXsyHeRrqzHH;~AKgGmnRBUAd(l#s#d|;2wJtKtep+Lb2Dj-Wo5^sB zPOuGxOqy;R3Lnu;w$H;V+H5-s)=&pKU&n*{2(j{?w#qbJbfO)FR{AfyMDB@t8e~7p zer!GS=!JTkY(LBK{$A|PMrl?5Jw0eYg5&qn@9ce`Te@c-3{XVGgvZDt)PZJ$Yc26j# z+w?=nkic)MWxtI~aN;PAip{Fx8us3FglQcj1w#t#qiKc;_?X@>tcADf5~my}r&pXp zpqbhadk1ppd&8>iu2jifEp)o`VQx$nec&9C(*CrLkl#jN3vnmWTY4PXV=psyG==w? zdM+{3G`apXx$Y-&E9E+`-k7U$%o~m7kCB6?)Fl|A=rNZUAc=zOG{>K|67mT!OZ*%eLD7$6r?K(IZ3A zS*F{km{wY?){4k=U;1U7Oo%MK9=YyD2s-l`2^lb$S;`*KM-j6}=f7SZO3 z;WJB{)geyrjXigPm0cI{2-^RAWVKF=c(iIij&TX*Zi_5;J*AF&JTvr?U82+6+=5@1 zQ_FOh@&^U$1_bYA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zN#Tn$z7S=e&4kB5GVHjg!W!&l kd77{VJGV;5ea#bN(s3A$Vo^F$IEwYm8Dji3T{x%v9~sqHJ^%m! diff --git a/main.c b/main.c index 5aed499..f52d0de 100644 --- a/main.c +++ b/main.c @@ -93,11 +93,11 @@ const SYSTEM_VERSION SystemVersionList[] = { {.Key = "DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4", .English = "Windows 10/11 Enterprise N", .Chinese = "Windows 10/11 企业版 N"}, {.Key = "YYVX9-NTFWV-6MDM3-9PT4T-4M68B", .English = "Windows 10/11 Enterprise G", .Chinese = "Windows 10/11 企业版 G"}, {.Key = "44RPN-FTY23-9VTTB-MP9BX-T84FV", .English = "Windows 10/11 Enterprise G N", .Chinese = "Windows 10/11 企业版 G N"}, - {.Key = "M7XTQ-FN8P6-TTKYV-9D4CC-J462D", .English = "Windows 10/11 LTSC", .Chinese = "Windows 10/11 长期支持版"}, - {.Key = "92NFX-8DJQP-P6BBQ-THF9C-7CG2H", .English = "Windows 10/11 LTSC N", .Chinese = "Windows 10/11 长期支持版 N"}, - {.Key = "KBN8V-HFGQ4-MGXVD-347P6-PDQGT", .English = "Windows 10/11 IoT LTSC", .Chinese = "Windows 10/11 物联网 长期支持版"}, - {.Key = "DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ", .English = "Windows 10/11 LTSB 2016", .Chinese = "Windows 10/11 长期支持版 2016"}, - {.Key = "QFFDN-GRT3P-VKWWX-X7T3R-8B639", .English = "Windows 10/11 LTSB 2016 N", .Chinese = "Windows 10/11 长期支持版 2016 N"}, + {.Key = "M7XTQ-FN8P6-TTKYV-9D4CC-J462D", .English = "Windows 10/11 LTSC", .Chinese = "Windows 10/11 LTSC 长期支持版"}, + {.Key = "92NFX-8DJQP-P6BBQ-THF9C-7CG2H", .English = "Windows 10/11 LTSC N", .Chinese = "Windows 10/11 LTSC 长期支持版 N"}, + {.Key = "KBN8V-HFGQ4-MGXVD-347P6-PDQGT", .English = "Windows 10/11 IoT LTSC", .Chinese = "Windows 10/11 物联网 LTSC 长期支持版"}, + {.Key = "DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ", .English = "Windows 10/11 LTSB 2016", .Chinese = "Windows 10/11 LTSB 长期支持版 2016"}, + {.Key = "QFFDN-GRT3P-VKWWX-X7T3R-8B639", .English = "Windows 10/11 LTSB 2016 N", .Chinese = "Windows 10/11 LTSB 长期支持版 2016 N"}, {.Key = "VDYBN-27WPP-V4HQT-9VMD4-VMK7H", .English = "Windows Server 2022 Standard", .Chinese = "Windows Server 2022 标准版"}, {.Key = "WX4NM-KYWYW-QJJR4-XV3QB-6VM33", .English = "Windows Server 2022 Datacenter", .Chinese = "Windows Server 2022 数据中心版"}, {.Key = "NTBV8-9K7Q8-V27C6-M2BTV-KHMXV", .English = "Windows Server 2022 Datacenter Azure", .Chinese = "Windows Server 2022 数据中心版 Azure"}, @@ -326,6 +326,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine // 设置下拉列表的字体 SendMessage(ActionBtn, WM_SETFONT, (WPARAM)hFont, TRUE); + TranslateApp(); + // 消息循环 while(GetMessage(&msg, NULL, 0, 0) > 0) { TranslateMessage(&msg); @@ -469,15 +471,15 @@ void TranslateChinese(void) void TranslateApp(void) { switch (CurSystemLang) { - case ENGLISH: - TranslateEnglish(); - break; - case CHINESE: - TranslateChinese(); - break; - default: - TranslateEnglish(); - break; + case ENGLISH: + TranslateEnglish(); + break; + case CHINESE: + TranslateChinese(); + break; + default: + TranslateEnglish(); + break; } // 默认系统版本选中第一个选项 diff --git a/main.o b/main.o index eb6956d482039f399d42b196a6114a9c5d962814..0bf976a331c124ea4a23096427ea6493882092e8 100644 GIT binary patch delta 2653 zcmYjT3rrMO6n%GQ_6NIyz%IxFZiR(aBrKvOd|DA*fq)+bDnyfFg$S0S5#lGtuHdJo z3DxylF_sWwTVrBtXji+&#EXBAU(v2e}jHS5o5X_KF3-K%|DGM2!XhI$38r3 zJz%Zi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