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

@ -68,6 +68,8 @@ BOOL CNewRA2HouseDlg::OnInitDialog()
{
CDialog::OnInitDialog();
translateUI();
CComboBox* country = (CComboBox*)GetDlgItem(IDC_COUNTRY);
for (auto const& [seq, id] : rules[HOUSES]) {
@ -81,3 +83,12 @@ BOOL CNewRA2HouseDlg::OnInitDialog()
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
}
void CNewRA2HouseDlg::translateUI()
{
TranslateWindowCaption(*this, "NewRA2HouseDlgCaption");
TranslateDlgItem(*this, IDC_NEWHOUSE_PARERNT, "NewRA2HouseDlgChooseParent");
TranslateDlgItem(*this, IDOK, "OK");
TranslateDlgItem(*this, IDCANCEL, "Cancel");
}