L10n/chinese translation (#5)

* hotkey tips using \t .
* simplified edit menu translation (ZH_CN)
* refactored GetLanguageStringACP and implemented 'TranslateDlgItem' and 'TranslateWindowCaption' helper function .
---------

Co-authored-by: shuiping233 <49360196+shuiping233@users.noreply.github.com>
This commit is contained in:
Zero Fanker 2024-10-29 00:22:39 -04:00 committed by GitHub
parent 1672fd8901
commit f0d808a912
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 1162 additions and 533 deletions

View file

@ -1285,7 +1285,9 @@ void CTriggers::OnDeleteevent()
if (sel2 < 0) {
return;
}
if (MessageBox("Do you really want to delete this event?", "Delete event", MB_YESNO) == IDNO) {
auto const title = TranslateStringACP("Delete event");
auto const content = TranslateStringACP("Do you really want to delete this event?");
if (MessageBox(content, title, MB_YESNO) == IDNO) {
return;
}
@ -1361,10 +1363,17 @@ void CTriggers::OnDeleteaction()
CIniFile& ini = Map->GetIniFile();
int sel = m_Trigger.GetCurSel();
if (sel < 0) return;
if (sel < 0) {
return;
}
int sel2 = m_Action.GetCurSel();
if (sel2 < 0) return;
if (MessageBox("Do you really want to delete this action?", "Delete action", MB_YESNO) == IDNO) {
if (sel2 < 0) {
return;
}
auto const title = TranslateStringACP("Delete action");
auto const content = TranslateStringACP("Do you really want to delete this action?");
if (MessageBox(content, title, MB_YESNO) == IDNO) {
return;
}