mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-18 04:06:42 -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
|
@ -178,12 +178,25 @@ BOOL CGlobalsDlg::OnInitDialog()
|
|||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
translateUI();
|
||||
|
||||
UpdateDialog();
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
|
||||
}
|
||||
|
||||
void CGlobalsDlg::translateUI()
|
||||
{
|
||||
TranslateWindowCaption(*this, "LocalVariableCaption");
|
||||
TranslateDlgItem(*this, IDC_LOCAL_VAR_CUR_TXT, "LocalVariableCurrent");
|
||||
TranslateDlgItem(*this, IDC_DESC, "LocalVariableDesc");
|
||||
TranslateDlgItem(*this, IDC_LOCAL_VAR_INIT_TXT, "LocalVariableInitValue");
|
||||
|
||||
m_Value.InsertString(0, TranslateStringACP("0 - Clear"));
|
||||
m_Value.InsertString(1, TranslateStringACP("1 - Set"));
|
||||
}
|
||||
|
||||
void CGlobalsDlg::OnSelchangeValue()
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue