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:
@@ -1,29 +1,29 @@
|
||||
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
|
||||
Depth Preview Debug:
|
||||
hotkey-group-depth-preview-debug:
|
||||
Types: DepthDebug
|
||||
Width: PARENT_WIDTH
|
||||
Height: PARENT_HEIGHT
|
||||
|
||||
@@ -1,54 +1,54 @@
|
||||
ProductionTypeBuilding: E
|
||||
Description: Building Tab
|
||||
Description: hotkey-description-ProductionTypeBuilding
|
||||
Types: Production
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
ProductionTypeDefense: R
|
||||
Description: Defense Tab
|
||||
Description: hotkey-description-ProductionTypeDefense
|
||||
Types: Production
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
ProductionTypeInfantry: T
|
||||
Description: Infantry Tab
|
||||
Description: hotkey-description-ProductionTypeInfantry
|
||||
Types: Production
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
ProductionTypeVehicle: Y
|
||||
Description: Vehicle Tab
|
||||
Description: hotkey-description-ProductionTypeVehicle
|
||||
Types: Production
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
ProductionTypeAircraft: U
|
||||
Description: Aircraft Tab
|
||||
Description: hotkey-description-ProductionTypeAircraft
|
||||
Types: Production
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
PowerDown: X
|
||||
Description: Power-down mode
|
||||
Description: hotkey-description-PowerDown
|
||||
Types: OrderGenerator
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
DecreaseDepthPreviewContrast: LEFTBRACKET SHIFT
|
||||
Description: Decrease Contrast
|
||||
Description: hotkey-description-DecreaseDepthPreviewContrast
|
||||
Types: DepthDebug
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
IncreaseDepthPreviewContrast: RIGHTBRACKET SHIFT
|
||||
Description: Increase Contrast
|
||||
Description: hotkey-description-IncreaseDepthPreviewContrast
|
||||
Types: DepthDebug
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
DecreaseDepthPreviewOffset: SEMICOLON SHIFT
|
||||
Description: Decrease Offset
|
||||
Description: hotkey-description-DecreaseDepthPreviewOffset
|
||||
Types: DepthDebug
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
IncreaseDepthPreviewOffset: QUOTE SHIFT
|
||||
Description: Increase Offset
|
||||
Description: hotkey-description-IncreaseDepthPreviewOffset
|
||||
Types: DepthDebug
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
ToggleDepthPreview: BACKSLASH SHIFT
|
||||
Description: Toggle Preview
|
||||
Description: hotkey-description-ToggleDepthPreview
|
||||
Types: DepthDebug
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
@@ -190,3 +190,6 @@ label-mainmenu-prerelease-notification-prompt-text-b = for the community to foll
|
||||
label-mainmenu-prerelease-notification-prompt-text-c = Many features are missing or incomplete, performance has not been
|
||||
label-mainmenu-prerelease-notification-prompt-text-d = optimized, and balance will not be addressed until a future beta.
|
||||
button-mainmenu-prerelease-notification-continue = I Understand
|
||||
|
||||
## settings-hotkeys.yaml
|
||||
hotkey-group-depth-preview-debug = Depth Preview Debug
|
||||
|
||||
12
mods/ts/languages/hotkeys/en.ftl
Normal file
12
mods/ts/languages/hotkeys/en.ftl
Normal file
@@ -0,0 +1,12 @@
|
||||
## hotkeys.yaml
|
||||
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
|
||||
hotkey-description-PowerDown = Power-down mode
|
||||
hotkey-description-DecreaseDepthPreviewContrast = Decrease Contrast
|
||||
hotkey-description-IncreaseDepthPreviewContrast = Increase Contrast
|
||||
hotkey-description-DecreaseDepthPreviewOffset = Decrease Offset
|
||||
hotkey-description-IncreaseDepthPreviewOffset = Increase Offset
|
||||
hotkey-description-ToggleDepthPreview = Toggle Preview
|
||||
@@ -186,9 +186,11 @@ ChromeLayout:
|
||||
Translations:
|
||||
common|languages/en.ftl
|
||||
common|languages/chrome/en.ftl
|
||||
common|languages/hotkeys/en.ftl
|
||||
common|languages/rules/en.ftl
|
||||
ts|languages/en.ftl
|
||||
ts|languages/chrome/en.ftl
|
||||
ts|languages/hotkeys/en.ftl
|
||||
ts|languages/rules/en.ftl
|
||||
|
||||
AllowUnusedTranslationsInExternalPackages: false
|
||||
|
||||
Reference in New Issue
Block a user