mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-10-16 01:03:37 -04:00
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:
parent
1672fd8901
commit
f0d808a912
45 changed files with 1162 additions and 533 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue