Refactor translation files

- Add prefixes to all message keys to provide context
- Use messages with attributes for some UI elements (dropdowns, dialogs, checkboxes, menus)
- Rename some class fields for consistency with translation keys
This commit is contained in:
Ivaylo Draganov
2022-11-10 13:46:51 +02:00
committed by Paul Chote
parent 46caa2d889
commit a0f17b15ec
89 changed files with 1095 additions and 1053 deletions

View File

@@ -126,8 +126,8 @@ Player:
FogCheckboxDisplayOrder: 3
LobbyPrerequisiteCheckbox@AUTOCONCRETE:
ID: autoconcrete
Label: automatic-concrete.label
Description: automatic-concrete.description
Label: checkbox-automatic-concrete.label
Description: checkbox-automatic-concrete.description
Enabled: False
DisplayOrder: 7
Prerequisites: global-auto-concrete
@@ -158,19 +158,19 @@ Player:
Prerequisite: player.smuggler
Factions: smuggler
ProvidesTechPrerequisite@low:
Name: low
Name: options-tech-level.low
Prerequisites: techlevel.low
Id: low
ProvidesTechPrerequisite@medium:
Name: medium
Name: options-tech-level.medium
Prerequisites: techlevel.low, techlevel.medium
Id: medium
ProvidesTechPrerequisite@nosuper:
Name: no-powers
Name: options-tech-level.no-powers
Prerequisites: techlevel.low, techlevel.medium, techlevel.high
Id: nopowers
ProvidesTechPrerequisite@all:
Name: unrestricted
Name: options-tech-level.unrestricted
Prerequisites: techlevel.low, techlevel.medium, techlevel.high, techlevel.superweapons
Id: unrestricted
EnemyWatcher:

View File

@@ -157,8 +157,8 @@ World:
Type: SandCrater
Sequence: sandcraters
MapCreeps:
CheckboxLabel: map-worms.label
CheckboxDescription: map-worms.description
CheckboxLabel: dropdown-map-worms.label
CheckboxDescription: dropdown-map-worms.description
CheckboxDisplayOrder: 5
SpawnMapActors:
MapBuildRadius:
@@ -173,12 +173,12 @@ World:
SeparateTeamSpawnsCheckboxDisplayOrder: 6
StartingUnits@mcv:
Class: none
ClassName: mcv-only
ClassName: options-starting-units.mcv-only
BaseActor: mcv
Factions: atreides, ordos, harkonnen
StartingUnits@lightatreides:
Class: light
ClassName: light-support
ClassName: options-starting-units.light-support
Factions: atreides
BaseActor: mcv
SupportActors: light_inf, light_inf, light_inf, trooper, grenadier, trike, quad
@@ -186,7 +186,7 @@ World:
OuterSupportRadius: 5
StartingUnits@lightharkonnen:
Class: light
ClassName: light-support
ClassName: options-starting-units.light-support
Factions: harkonnen
BaseActor: mcv
SupportActors: light_inf, light_inf, light_inf, trooper, trooper, trike, quad
@@ -194,7 +194,7 @@ World:
OuterSupportRadius: 5
StartingUnits@lightordos:
Class: light
ClassName: light-support
ClassName: options-starting-units.light-support
Factions: ordos
BaseActor: mcv
SupportActors: light_inf, light_inf, light_inf, trooper, engineer, raider, quad
@@ -202,7 +202,7 @@ World:
OuterSupportRadius: 5
StartingUnits@heavyatreides:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: atreides
BaseActor: mcv
SupportActors: light_inf, light_inf, light_inf, trooper, grenadier, trike, combat_tank_a, missile_tank
@@ -210,7 +210,7 @@ World:
OuterSupportRadius: 5
StartingUnits@heavyharkonnen:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: harkonnen
BaseActor: mcv
SupportActors: light_inf, light_inf, light_inf, trooper, engineer, quad, combat_tank_h, siege_tank
@@ -218,7 +218,7 @@ World:
OuterSupportRadius: 5
StartingUnits@heavyordos:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: ordos
BaseActor: mcv
SupportActors: light_inf, light_inf, light_inf, trooper, engineer, raider, combat_tank_o, missile_tank