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
|
@ -273,7 +273,9 @@ void CHouses::OnPreparehouses()
|
|||
|
||||
// import the rules.ini houses
|
||||
if (ini[MAPHOUSES].Size() > 0) {
|
||||
MessageBox("There are already houses in your map. You need to delete these first.");
|
||||
auto const title = TranslateStringACP("HouseDuplicatedCreatingCaption");
|
||||
auto const content = TranslateStringACP("HouseDuplicatedCreatingTip");
|
||||
MessageBox(content, title);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -414,10 +416,11 @@ void CHouses::OnShowWindow(BOOL bShow, UINT nStatus)
|
|||
|
||||
if (bShow) {
|
||||
if (!ini.TryGetSection(MAPHOUSES) && ini.Size() > 0) {
|
||||
auto const caption = TranslateStringACP("HouseNoneExistenseCap");
|
||||
#ifndef RA2_MODE
|
||||
MessageBox("No houses do exist, if you want to use houses, you should use ""Prepare houses"" before doing anything else. Note that in a multiplayer map independent computer players cannot be created by using the names GDI and Nod for the house. Just use something like GDI_AI.");
|
||||
#else
|
||||
MessageBox("No houses do exist, if you want to use houses, you should use ""Prepare houses"" before doing anything else.");
|
||||
MessageBox(TranslateStringACP("HouseNoneExistense"), caption);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue