mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-18 05:20:41 +00:00
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:
@@ -6,11 +6,11 @@
|
||||
<body>
|
||||
<div id="help_options_menu">
|
||||
<div id="buttons">
|
||||
<button id="change_skin">Change Skin</button>
|
||||
<button id="how_to_play">How To Play</button>
|
||||
<button id="controls">Controls</button>
|
||||
<button id="settings">Settings</button>
|
||||
<button id="credits">Credits</button>
|
||||
<button id="change_skin">{IDS_CHANGE_SKIN}</button>
|
||||
<button id="how_to_play">{IDS_HOW_TO_PLAY}</button>
|
||||
<button id="controls">{IDS_CONTROLS}</button>
|
||||
<button id="settings">{IDS_SETTINGS}</button>
|
||||
<button id="credits">{IDS_CREDITS}</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -6,25 +6,25 @@
|
||||
<body>
|
||||
<div id="pause_menu">
|
||||
<div id="buttons">
|
||||
<button id="resume">Resume Game</button>
|
||||
<button id="help_options">Help & Options</button>
|
||||
<button id="achievements">Achievements</button>
|
||||
<button id="save_game">Save Game</button>
|
||||
<button id="exit_game">Exit Game</button>
|
||||
<button id="resume">{IDS_RESUME_GAME}</button>
|
||||
<button id="help_options">{IDS_HELP_AND_OPTIONS}</button>
|
||||
<button id="achievements">{IDS_ACHIEVEMENTS}</button>
|
||||
<button id="save_game">{IDS_SAVE_GAME}</button>
|
||||
<button id="exit_game">{IDS_EXIT_GAME}</button>
|
||||
</div>
|
||||
<div id="exit_dialog">
|
||||
<p id="exit_text">Exit Game?</p>
|
||||
<p id="exit_text">{IDS_CONFIRM_EXIT_GAME}</p>
|
||||
<div id="exit_buttons">
|
||||
<button id="exit_save">Save & Exit</button>
|
||||
<button id="exit_nosave">Exit without Saving</button>
|
||||
<button id="exit_cancel">Cancel</button>
|
||||
<button id="exit_save">{IDS_EXIT_GAME_SAVE}</button>
|
||||
<button id="exit_nosave">{IDS_EXIT_GAME_NO_SAVE}</button>
|
||||
<button id="exit_cancel">{IDS_CANCEL}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="save_dialog">
|
||||
<p id="save_text">Overwrite existing save?</p>
|
||||
<p id="save_text">{IDS_CONFIRM_SAVE_GAME}</p>
|
||||
<div id="save_buttons">
|
||||
<button id="save_cancel">Cancel</button>
|
||||
<button id="save_confirm">Save</button>
|
||||
<button id="save_cancel">{IDS_CANCEL}</button>
|
||||
<button id="save_confirm">{IDS_CONFIRM_SAVE_GAME}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,18 +6,18 @@
|
||||
<body>
|
||||
<div id="settings_menu">
|
||||
<div id="buttons">
|
||||
<button id="options">Options</button>
|
||||
<button id="audio">Audio</button>
|
||||
<button id="controls">Controls</button>
|
||||
<button id="graphics">Graphics</button>
|
||||
<button id="ui">User Interface</button>
|
||||
<button id="reset_defaults">Reset to Defaults</button>
|
||||
<button id="options">{IDS_OPTIONS}</button>
|
||||
<button id="audio">{IDS_AUDIO}</button>
|
||||
<button id="controls">{IDS_CONTROLS}</button>
|
||||
<button id="graphics">{IDS_GRAPHICS}</button>
|
||||
<button id="ui">{IDS_USER_INTERFACE}</button>
|
||||
<button id="reset_defaults">{IDS_RESET_TO_DEFAULTS}</button>
|
||||
</div>
|
||||
<div id="confirm_dialog">
|
||||
<p id="confirm_text">Reset all settings to defaults?</p>
|
||||
<p id="confirm_text">{IDS_RESET_TO_DEFAULTS}</p>
|
||||
<div id="confirm_buttons">
|
||||
<button id="confirm_no">No</button>
|
||||
<button id="confirm_yes">Yes</button>
|
||||
<button id="confirm_no">{IDS_NO}</button>
|
||||
<button id="confirm_yes">{IDS_YES}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user