mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
feat(windows64): add all 23 localisation blocks to languages.loc
Windows64 previously only had 10 language blocks (en-US, de-DE, es-ES, fr-FR, it-IT, ja-JP, ko-KR, pt-BR, zh-CHT, ru-RU). All other languages in UIScene_LanguageSelector fell back to English. Added the 13 missing language blocks by mapping Durango/other-platform XML source files to Windows64 integer IDs from strings.h: pt-PT Portuguese (Portugal) da-DK Danish fi-FI Finnish nl-NL Dutch pl-PL Polish sv-SE Swedish nb-NO Norwegian sk-SK Slovak cs-CZ Czech el-GR Greek zh-CN Simplified Chinese es-MX Spanish (Latin America) en-GB English (UK, used as Greek fallback) Each block contains 2288 strings with correct Slovak/Czech language name translations, and English fallback for Windows64-specific strings not present in Durango source files (coverage 83-98% per language). Also enable eFont_SimpChinese for _WINDOWS64 in getFontForLanguage() so Simplified Chinese uses MSYH.ttf (already present in Common/Media/font/CHS/) instead of falling back to the bitmap font which cannot render CJK glyphs.
This commit is contained in:
parent
0e8c7be867
commit
521a6266ed
Binary file not shown.
|
|
@ -345,7 +345,7 @@ UIController::EFont UIController::getFontForLanguage(int language)
|
|||
switch(language)
|
||||
{
|
||||
case XC_LANGUAGE_JAPANESE: return eFont_Japanese;
|
||||
#ifdef _DURANGO
|
||||
#if defined(_DURANGO) || defined(_WINDOWS64)
|
||||
case XC_LANGUAGE_SCHINESE: return eFont_SimpChinese;
|
||||
#endif
|
||||
case XC_LANGUAGE_TCHINESE: return eFont_TradChinese;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue