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:
@@ -670,6 +670,17 @@ label-gl-profile-dropdown-container = OpenGL Profile:
|
||||
label-restart-required-container-video-desc = Display and OpenGL changes require restart
|
||||
|
||||
## settings-hotkeys.yaml
|
||||
hotkey-group-game-commands = Game Commands
|
||||
hotkey-group-viewport-commands = Viewport Commands
|
||||
hotkey-group-observer-replay-commands = Observer / Replay Commands
|
||||
hotkey-group-unit-commands = Unit Commands
|
||||
hotkey-group-unit-stance-commands = Unit Stance Commands
|
||||
hotkey-group-production-commands = Production Commands
|
||||
hotkey-group-support-power-commands = Support Power Commands
|
||||
hotkey-group-music-commands = Music Commands
|
||||
hotkey-group-chat-commands = Chat Commands
|
||||
hotkey-group-control-groups = Control Groups
|
||||
hotkey-group-editor-commands = Editor Commands
|
||||
label-hotkeys-panel-filter-input = Filter by name:
|
||||
label-hotkeys-panel-context-dropdown = Context:
|
||||
label-hotkey-empty-list-message = No hotkeys match the filter criteria.
|
||||
|
||||
8
mods/cnc/languages/hotkeys/en.ftl
Normal file
8
mods/cnc/languages/hotkeys/en.ftl
Normal file
@@ -0,0 +1,8 @@
|
||||
## hotkeys.yaml
|
||||
hotkey-description-NextProductionTab = Next tab
|
||||
hotkey-description-PreviousProductionTab = Previous tab
|
||||
hotkey-description-ProductionTypeBuilding = Building Tab
|
||||
hotkey-description-ProductionTypeDefense = Defense Tab
|
||||
hotkey-description-ProductionTypeInfantry = Infantry Tab
|
||||
hotkey-description-ProductionTypeVehicle = Vehicle Tab
|
||||
hotkey-description-ProductionTypeAircraft = Aircraft Tab
|
||||
Reference in New Issue
Block a user