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 "Lighting.h"
|
||||
#include "mapdata.h"
|
||||
#include "variables.h"
|
||||
#include "functions.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
|
@ -102,21 +103,36 @@ void CLighting::UpdateDialog()
|
|||
//MessageBox(ini.GetString("Lightning", "Ambient"));
|
||||
}
|
||||
|
||||
BOOL CLighting::OnInitDialog()
|
||||
void CLighting::translateUI()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
TranslateDlgItem(*this, IDC_TASKFORCE_T_TYPE, "TaskforcesType");
|
||||
TranslateWindowCaption(*this, "Lighting");
|
||||
TranslateDlgItem(*this, IDD_LIGHTING, "Lighting");
|
||||
TranslateDlgItem(*this, IDC_DESC, "LightingDesc");
|
||||
TranslateDlgItem(*this, IDC_LNORMAL, "LightingNormal");
|
||||
TranslateDlgItem(*this, IDC_LAMBIENT1, "LightingNormalAmbient");
|
||||
TranslateDlgItem(*this, IDC_LLEVEL1, "LightingNormalLevel");
|
||||
TranslateDlgItem(*this, IDC_LRED1, "LightingNormalRed");
|
||||
TranslateDlgItem(*this, IDC_LGREEN1, "LightingNormalGreen");
|
||||
TranslateDlgItem(*this, IDC_LBLUE1, "LightingNormalBlue");
|
||||
TranslateDlgItem(*this, IDC_LIONSTORM, "LightingIonStorm");
|
||||
TranslateDlgItem(*this, IDC_LAMBIENT2, "LightingWeatherStormAmbient");
|
||||
TranslateDlgItem(*this, IDC_LLEVEL2, "LightingWeatherStormLevel");
|
||||
TranslateDlgItem(*this, IDC_LRED2, "LightingWeatherStormRed");
|
||||
TranslateDlgItem(*this, IDC_LGREEN2, "LightingWeatherStormGreen");
|
||||
TranslateDlgItem(*this, IDC_LBLUE2, "LightingWeatherStormBlue");
|
||||
|
||||
#ifdef RA2_MODE
|
||||
SetDlgItemText(IDC_LIONSTORM, "Weather Storm Settings");
|
||||
TranslateDlgItem(*this, IDC_LIONSTORM, "LightingWeatherStorm");
|
||||
#endif
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
BOOL CLighting::OnInitDialog()
|
||||
{
|
||||
auto const ret = CDialog::OnInitDialog();
|
||||
translateUI();
|
||||
return ret;
|
||||
}
|
||||
|
||||
void CLighting::OnChangeAmbient()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue