Expose hotkeys to localisation.

Allows the Settings > Hotkeys screen to be localised, including hotkey decriptions, groups and contexts.

The hotkey names are exposed to localisation via KeycodeExts. Hotkey modifiers are similarly exposed via ModifersExts.

The Settings > Input screen has a Zoom Modifier dropdown, which shows the localised modifier name.

The --check-yaml utility command is taught to recognise all hotkey translation, so it can validate their usage.
This commit is contained in:
RoosterDragon
2024-09-17 19:42:42 +01:00
committed by Gustas
parent 10856ccfd0
commit 6f6fb5b393
39 changed files with 1284 additions and 722 deletions

View File

@@ -1,27 +1,27 @@
Container@HOTKEYS_PANEL:
Logic: HotkeysSettingsLogic
HotkeyGroups:
Game Commands:
hotkey-group-game-commands:
Types: OrderGenerator, World, Menu
Viewport Commands:
hotkey-group-viewport-commands:
Types: Viewport
Observer / Replay Commands:
hotkey-group-observer-replay-commands:
Types: Observer, Replay
Unit Commands:
hotkey-group-unit-commands:
Types: Unit
Unit Stance Commands:
hotkey-group-unit-stance-commands:
Types: Stance
Production Commands:
hotkey-group-production-commands:
Types: Production, ProductionSlot
Support Power Commands:
hotkey-group-support-power-commands:
Types: SupportPower
Music Commands:
hotkey-group-music-commands:
Types: Music
Chat Commands:
hotkey-group-chat-commands:
Types: Chat
Control Groups:
hotkey-group-control-groups:
Types: ControlGroups
Editor Commands:
hotkey-group-editor-commands:
Types: Editor
Width: PARENT_WIDTH
Height: PARENT_HEIGHT