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,34 +1,34 @@
|
||||
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
|
||||
|
||||
ProductionTypeNaval: I
|
||||
Description: Naval Tab
|
||||
Description: hotkey-description-ProductionTypeNaval
|
||||
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
|
||||
|
||||
8
mods/ra/languages/hotkeys/en.ftl
Normal file
8
mods/ra/languages/hotkeys/en.ftl
Normal file
@@ -0,0 +1,8 @@
|
||||
## 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-ProductionTypeNaval = Naval Tab
|
||||
hotkey-description-PowerDown = Power-down mode
|
||||
@@ -141,9 +141,11 @@ ChromeLayout:
|
||||
Translations:
|
||||
common|languages/en.ftl
|
||||
common|languages/chrome/en.ftl
|
||||
common|languages/hotkeys/en.ftl
|
||||
common|languages/rules/en.ftl
|
||||
ra|languages/en.ftl
|
||||
ra|languages/chrome/en.ftl
|
||||
ra|languages/hotkeys/en.ftl
|
||||
ra|languages/rules/en.ftl
|
||||
|
||||
AllowUnusedTranslationsInExternalPackages: false
|
||||
|
||||
Reference in New Issue
Block a user