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

@ -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
}