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,39 +1,39 @@
|
||||
ProductionTypeBuilding: E
|
||||
Description: Building Tab
|
||||
Description: hotkey-description-ProductionTypeBuilding
|
||||
Types: Production
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
ProductionTypeUpgrade: R
|
||||
Description: Upgrade Tab
|
||||
Description: hotkey-description-ProductionTypeUpgrade
|
||||
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
|
||||
|
||||
ProductionTypeTank: I
|
||||
Description: Tank Tab
|
||||
Description: hotkey-description-ProductionTypeTank
|
||||
Types: Production
|
||||
Contexts: Player
|
||||
Contexts: hotkey-context-player
|
||||
|
||||
ProductionTypeMerchant: O
|
||||
Description: Starport Tab
|
||||
Description: hotkey-description-ProductionTypeMerchant
|
||||
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
|
||||
|
||||
9
mods/d2k/languages/hotkeys/en.ftl
Normal file
9
mods/d2k/languages/hotkeys/en.ftl
Normal file
@@ -0,0 +1,9 @@
|
||||
## hotkeys.yaml
|
||||
hotkey-description-ProductionTypeBuilding = Building Tab
|
||||
hotkey-description-ProductionTypeUpgrade = Upgrade Tab
|
||||
hotkey-description-ProductionTypeInfantry = Infantry Tab
|
||||
hotkey-description-ProductionTypeVehicle = Vehicle Tab
|
||||
hotkey-description-ProductionTypeAircraft = Aircraft Tab
|
||||
hotkey-description-ProductionTypeTank = Tank Tab
|
||||
hotkey-description-ProductionTypeMerchant = Starport Tab
|
||||
hotkey-description-PowerDown = Power-down mode
|
||||
@@ -123,9 +123,11 @@ ChromeLayout:
|
||||
Translations:
|
||||
common|languages/en.ftl
|
||||
common|languages/chrome/en.ftl
|
||||
common|languages/hotkeys/en.ftl
|
||||
common|languages/rules/en.ftl
|
||||
d2k|languages/en.ftl
|
||||
d2k|languages/chrome/en.ftl
|
||||
d2k|languages/hotkeys/en.ftl
|
||||
d2k|languages/rules/en.ftl
|
||||
|
||||
AllowUnusedTranslationsInExternalPackages: false
|
||||
|
||||
Reference in New Issue
Block a user