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
|
@ -26,6 +26,7 @@
|
|||
#include "WaypointID.h"
|
||||
#include "mapdata.h"
|
||||
#include "variables.h"
|
||||
#include "functions.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
|
@ -68,10 +69,9 @@ void CWaypointID::OnFree()
|
|||
{
|
||||
CIniFile& ini = Map->GetIniFile();
|
||||
|
||||
int i;
|
||||
CString freen;
|
||||
|
||||
for (i = 0; i > -1; i++) {
|
||||
for (auto i = 0; ; i++) {
|
||||
char d[50];
|
||||
itoa(i, d, 10);
|
||||
if (ini.GetString("Waypoints", d).IsEmpty()) {
|
||||
|
@ -100,8 +100,21 @@ BOOL CWaypointID::OnInitDialog()
|
|||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
translateUI();
|
||||
|
||||
OnFree();
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
|
||||
}
|
||||
|
||||
void CWaypointID::translateUI()
|
||||
{
|
||||
TranslateWindowCaption(*this, "CreateWaypointDlgCaption");
|
||||
|
||||
TranslateDlgItem(*this, IDC_DESC, "CreateWaypointDlgDesc");
|
||||
TranslateDlgItem(*this, IDC_LID, "CreateWaypointDlgID");
|
||||
TranslateDlgItem(*this, IDC_FREE, "CreateWaypointDlgFree");
|
||||
TranslateDlgItem(*this, IDOK, "CreateWaypointDlgOk");
|
||||
TranslateDlgItem(*this, IDCANCEL, "CreateWaypointDlgCancel");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue