Implement RMLUI string translation via LCE StringTable

Replace hardcoded English strings in RML UI files with {IDS_XXX}
placeholders that are translated at runtime via RmlUi's TranslateString
override, which looks up keys in the LCE StringTable.

- Override SystemInterface_Win64::TranslateString to scan for {KEY}
  patterns and resolve them via StringTable::getString(wstring)
- Add GetLCEStringTable() accessor to CConsoleMinecraftApp
- Update PauseMenu.rml, SettingsMenu.rml, HelpOptions.rml with IDS_XXX keys
- Update dynamic dialog SetInnerRML calls in UIScene_PauseMenu.cpp
- Fix CMakePresets.json: remove hardcoded VS2022 ml64.exe path
This commit is contained in:
Zero
2026-06-12 15:46:34 +02:00
parent 233aea0110
commit 5355394a5a
7 changed files with 104 additions and 36 deletions

View File

@@ -29,6 +29,7 @@ public:
virtual void ReadBannedList(int iPad, eTMSAction action=static_cast<eTMSAction>(0), bool bCallback=false) {}
C4JStringTable *GetStringTable() { return nullptr;}
StringTable *GetLCEStringTable() { return m_stringTable; }
// original code
virtual void TemporaryCreateGameStart();