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:
@@ -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
|
||||
Reference in New Issue
Block a user