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:
Leeksov 2026-03-14 17:46:19 +03:00
parent 0e8c7be867
commit 521a6266ed
3 changed files with 1 additions and 1 deletions

View file

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