mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -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
|
@ -47,6 +47,14 @@ CTriggerEventsDlg::CTriggerEventsDlg(CWnd* pParent /*=NULL*/)
|
|||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
BOOL CTriggerEventsDlg::OnInitDialog()
|
||||
{
|
||||
auto const ret = CDialog::OnInitDialog();
|
||||
|
||||
TranslateUI();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void CTriggerEventsDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
|
@ -72,6 +80,18 @@ BEGIN_MESSAGE_MAP(CTriggerEventsDlg, CDialog)
|
|||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
void CTriggerEventsDlg::TranslateUI()
|
||||
{
|
||||
TranslateDlgItem(*this, IDC_EVENT_CUR_TXT, "TriggerEventCurrent");
|
||||
TranslateDlgItem(*this, IDC_NEWEVENT, "TriggerEventNew");
|
||||
TranslateDlgItem(*this, IDC_DELETEEVENT, "TriggerEventDelete");
|
||||
TranslateDlgItem(*this, IDC_EVENT_OPT_TXT, "TriggerEventOptions");
|
||||
TranslateDlgItem(*this, IDC_EVENT_TYPE_TXT, "TriggerEventType");
|
||||
TranslateDlgItem(*this, IDC_EVENT_PARAM_TXT, "TriggerEventParams");
|
||||
TranslateDlgItem(*this, IDC_EVENT_VAL_TXT, "TriggerEventParamValue");
|
||||
TranslateDlgItem(*this, IDC_EVENT_DESC, "TriggerEventDesc");
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Behandlungsroutinen für Nachrichten CTriggerEventsDlg
|
||||
|
||||
|
@ -160,7 +180,9 @@ void CTriggerEventsDlg::OnDeleteevent()
|
|||
return;
|
||||
}
|
||||
int curev = m_Event.GetItemData(sel2);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue