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

@@ -1,22 +1,24 @@
## Player
low = Low
medium = Medium
no-powers = No Powers
unrestricted = Unrestricted
options-tech-level =
.low = Low
.medium = Medium
.no-powers = No Powers
.unrestricted = Unrestricted
redeployable-mcvs =
checkbox-redeployable-mcvs =
.label = Redeployable MCVs
.description = Allow undeploying Construction Yard
stealth-deliveries =
checkbox-stealth-deliveries =
.label = Stealth Deliveries
.description = Nod's delivery plane is cloaked
## World
mcv-only = MCV Only
light-support = Light Support
heavy-support = Heavy Support
options-starting-units =
.mcv-only = MCV Only
.light-support = Light Support
.heavy-support = Heavy Support
map-creeps =
dropdown-map-creeps =
.label = Creep Actors
.description = Hostile forces spawn on the battlefield

View File

@@ -256,27 +256,27 @@ GameSpeeds:
DefaultSpeed: default
Speeds:
slowest:
Name: slowest
Name: options-game-speed.slowest
Timestep: 80
OrderLatency: 2
slower:
Name: slower
Name: options-game-speed.slower
Timestep: 50
OrderLatency: 3
default:
Name: normal
Name: options-game-speed.normal
Timestep: 40
OrderLatency: 3
fast:
Name: fast
Name: options-game-speed.fast
Timestep: 35
OrderLatency: 4
faster:
Name: faster
Name: options-game-speed.faster
Timestep: 30
OrderLatency: 4
fastest:
Name: fastest
Name: options-game-speed.fastest
Timestep: 20
OrderLatency: 6

View File

@@ -42,15 +42,15 @@ Player:
FogCheckboxDisplayOrder: 3
LobbyPrerequisiteCheckbox@GLOBALFACTUNDEPLOY:
ID: factundeploy
Label: redeployable-mcvs.label
Description: redeployable-mcvs.description
Label: checkbox-redeployable-mcvs.label
Description: checkbox-redeployable-mcvs.description
Enabled: True
DisplayOrder: 7
Prerequisites: global-factundeploy
LobbyPrerequisiteCheckbox@GLOBALC17STEALTH:
ID: C17-Stealth
Label: stealth-deliveries.label
Description: stealth-deliveries.description
Label: checkbox-stealth-deliveries.label
Description: checkbox-stealth-deliveries.description
Enabled: False
DisplayOrder: 8
Prerequisites: global-C17-stealth
@@ -58,19 +58,19 @@ Player:
FrozenActorLayer:
PlaceBeacon:
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
GrantConditionOnPrerequisiteManager:

View File

@@ -208,42 +208,42 @@ World:
CreateMapPlayers:
StartingUnits@mcvonly:
Class: none
ClassName: mcv-only
ClassName: options-starting-units.mcv-only
Factions: gdi, nod
BaseActor: mcv
StartingUnits@defaultgdia:
Class: light
ClassName: light-support
ClassName: options-starting-units.light-support
Factions: gdi
BaseActor: mcv
SupportActors: e1,e1,e1,e1,e1,e3,e3,jeep
StartingUnits@defaultnoda:
Class: light
ClassName: light-support
ClassName: options-starting-units.light-support
Factions: nod
BaseActor: mcv
SupportActors: e1,e1,e1,e1,e1,e1,e3,e3,bggy
StartingUnits@heavynoda:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: nod
BaseActor: mcv
SupportActors: e1,e1,e1,e1,e3,e3,ltnk,ltnk,ftnk
StartingUnits@heavynodb:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: nod
BaseActor: mcv
SupportActors: e1,e1,e1,e1,e1,e3,e3,e3,ftnk,ftnk
StartingUnits@heavygdia:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: gdi
BaseActor: mcv
SupportActors: e1,e1,e1,e1,e3,e3,jeep,mtnk,mtnk
StartingUnits@heavygdib:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: gdi
BaseActor: mcv
SupportActors: e1,e1,e1,e1,e1,e2,e2,e2,e3,e3,apc,mtnk

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +1,20 @@
## Player
low = Low
medium = Medium
no-powers = No Powers
unrestricted = Unrestricted
options-tech-level =
.low = Low
.medium = Medium
.no-powers = No Powers
.unrestricted = Unrestricted
automatic-concrete =
checkbox-automatic-concrete =
.label = Automatic Concrete
.description = Concrete foundations are automatically created beneath buildings
## World
map-worms =
dropdown-map-worms =
.label = Worms
.description = Worms roam the map and devour unprepared forces
mcv-only = MCV Only
light-support = Light Support
heavy-support = Heavy Support
options-starting-units =
.mcv-only = MCV Only
.light-support = Light Support
.heavy-support = Heavy Support

View File

@@ -232,27 +232,27 @@ GameSpeeds:
DefaultSpeed: default
Speeds:
slowest:
Name: slowest
Name: options-game-speed.slowest
Timestep: 80
OrderLatency: 2
slower:
Name: slower
Name: options-game-speed.slower
Timestep: 50
OrderLatency: 3
default:
Name: normal
Name: options-game-speed.normal
Timestep: 40
OrderLatency: 3
fast:
Name: fast
Name: options-game-speed.fast
Timestep: 35
OrderLatency: 4
faster:
Name: faster
Name: options-game-speed.faster
Timestep: 30
OrderLatency: 4
fastest:
Name: fastest
Name: options-game-speed.fastest
Timestep: 20
OrderLatency: 6

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

View File

@@ -1,23 +1,25 @@
## Player
infantry-only = Infantry Only
low = Low
medium = Medium
no-superweapons = No Superweapons
unrestricted = Unrestricted
options-tech-level =
.infantry-only = Infantry Only
.low = Low
.medium = Medium
.no-superweapons = No Superweapons
.unrestricted = Unrestricted
kill-bounties =
checkbox-kill-bounties =
.label = Kill Bounties
.description = Players receive cash bonuses when killing enemy units
redeployable-mcvs =
checkbox-redeployable-mcvs =
.label = Redeployable MCVs
.description = Allow undeploying Construction Yard
reusable-engineers =
checkbox-reusable-engineers =
.label = Reusable Engineers
.description = Engineers remain on the battlefield after capturing a structure
## World
mcv-only = MCV Only
light-support = Light Support
heavy-support = Heavy Support
options-starting-units =
.mcv-only = MCV Only
.light-support = Light Support
.heavy-support = Heavy Support

View File

@@ -258,27 +258,27 @@ GameSpeeds:
DefaultSpeed: default
Speeds:
slowest:
Name: slowest
Name: options-game-speed.slowest
Timestep: 80
OrderLatency: 2
slower:
Name: slower
Name: options-game-speed.slower
Timestep: 50
OrderLatency: 3
default:
Name: normal
Name: options-game-speed.normal
Timestep: 40
OrderLatency: 3
fast:
Name: fast
Name: options-game-speed.fast
Timestep: 35
OrderLatency: 4
faster:
Name: faster
Name: options-game-speed.faster
Timestep: 30
OrderLatency: 4
fastest:
Name: fastest
Name: options-game-speed.fastest
Timestep: 20
OrderLatency: 6

View File

@@ -125,22 +125,22 @@ Player:
FogCheckboxDisplayOrder: 3
LobbyPrerequisiteCheckbox@GLOBALBOUNTY:
ID: bounty
Label: kill-bounties.label
Description: kill-bounties.description
Label: checkbox-kill-bounties.label
Description: checkbox-kill-bounties.description
Enabled: False
DisplayOrder: 8
Prerequisites: global-bounty
LobbyPrerequisiteCheckbox@GLOBALFACTUNDEPLOY:
ID: factundeploy
Label: redeployable-mcvs.label
Description: redeployable-mcvs.description
Label: checkbox-redeployable-mcvs.label
Description: checkbox-redeployable-mcvs.description
Enabled: True
DisplayOrder: 7
Prerequisites: global-factundeploy
LobbyPrerequisiteCheckbox@REUSABLEENGINEERS:
ID: reusable-engineers
Label: reusable-engineers.label
Description: reusable-engineers.description
Label: checkbox-reusable-engineers.label
Description: checkbox-reusable-engineers.description
Enabled: False
DisplayOrder: 9
Prerequisites: global-reusable-engineers
@@ -151,23 +151,23 @@ Player:
PlayerStatistics:
PlaceBeacon:
ProvidesTechPrerequisite@infonly:
Name: infantry-only
Name: options-tech-level.infantry-only
Prerequisites: techlevel.infonly
Id: infantryonly
ProvidesTechPrerequisite@low:
Name: low
Name: options-tech-level.low
Prerequisites: techlevel.infonly, techlevel.low
Id: low
ProvidesTechPrerequisite@medium:
Name: medium
Name: options-tech-level.medium
Prerequisites: techlevel.infonly, techlevel.low, techlevel.medium
Id: medium
ProvidesTechPrerequisite@high:
Name: no-superweapons
Name: options-tech-level.no-superweapons
Prerequisites: techlevel.infonly, techlevel.low, techlevel.medium, techlevel.high
Id: nosuperweapons
ProvidesTechPrerequisite@unrestricted:
Name: unrestricted
Name: options-tech-level.unrestricted
Prerequisites: techlevel.infonly, techlevel.low, techlevel.medium, techlevel.high, techlevel.unrestricted
Id: unrestricted
GrantConditionOnPrerequisiteManager:

View File

@@ -228,12 +228,12 @@ World:
CreateMapPlayers:
StartingUnits@mcvonly:
Class: none
ClassName: mcv-only
ClassName: options-starting-units.mcv-only
Factions: allies, england, france, germany, soviet, russia, ukraine
BaseActor: mcv
StartingUnits@lightallies:
Class: light
ClassName: light-support
ClassName: options-starting-units.light-support
Factions: allies, england, france, germany
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,jeep,1tnk
@@ -241,7 +241,7 @@ World:
OuterSupportRadius: 5
StartingUnits@lightsoviet:
Class: light
ClassName: light-support
ClassName: options-starting-units.light-support
Factions: soviet, russia, ukraine
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,apc,ftrk
@@ -249,7 +249,7 @@ World:
OuterSupportRadius: 5
StartingUnits@heavyallies:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: allies, england, france, germany
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,jeep,1tnk,2tnk,2tnk,2tnk
@@ -257,7 +257,7 @@ World:
OuterSupportRadius: 5
StartingUnits@heavysoviet:
Class: heavy
ClassName: heavy-support
ClassName: options-starting-units.heavy-support
Factions: soviet, russia, ukraine
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,apc,ftrk,3tnk,3tnk

View File

@@ -1,18 +1,21 @@
## Player
low = Low
medium = Medium
no-powers = No Powers
unrestricted = Unrestricted
options-tech-level =
.low = Low
.medium = Medium
.no-powers = No Powers
.unrestricted = Unrestricted
redeployable-mcvs =
checkbox-redeployable-mcvs =
.label = Redeployable MCVs
.description = Allow undeploying Construction Yard
## World
mcv-only = MCV Only
light = Light
heavy = Heavy
options-starting-units =
.mcv-only = MCV Only
.light = Light
.medium = Medium
.heavy = Heavy
map-creeps =
dropdown-map-creeps =
.label = Creep Actors
.description = Hostile forces spawn on the battlefield

View File

@@ -290,27 +290,27 @@ GameSpeeds:
DefaultSpeed: default
Speeds:
slowest:
Name: slowest
Name: options-game-speed.slowest
Timestep: 80
OrderLatency: 2
slower:
Name: slower
Name: options-game-speed.slower
Timestep: 50
OrderLatency: 3
default:
Name: normal
Name: options-game-speed.normal
Timestep: 40
OrderLatency: 3
fast:
Name: fast
Name: options-game-speed.fast
Timestep: 35
OrderLatency: 4
faster:
Name: faster
Name: options-game-speed.faster
Timestep: 30
OrderLatency: 4
fastest:
Name: fastest
Name: options-game-speed.fastest
Timestep: 20
OrderLatency: 6

View File

@@ -107,8 +107,8 @@ Player:
FogCheckboxDisplayOrder: 3
LobbyPrerequisiteCheckbox@GLOBALFACTUNDEPLOY:
ID: factundeploy
Label: redeployable-mcvs.label
Description: redeployable-mcvs.description
Label: checkbox-redeployable-mcvs.label
Description: checkbox-redeployable-mcvs.description
Enabled: True
DisplayOrder: 7
Prerequisites: global-factundeploy
@@ -127,19 +127,19 @@ Player:
ArrowSequence:
CircleSequence:
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
ResourceStorageWarning:

View File

@@ -307,12 +307,12 @@ World:
CreateMapPlayers:
StartingUnits@MCV:
Class: none
ClassName: mcv-only
ClassName: options-starting-units.mcv-only
Factions: gdi, nod
BaseActor: mcv
StartingUnits@light.gdi:
Class: light
ClassName: light
ClassName: options-starting-units.light
Factions: gdi
BaseActor: mcv
SupportActors: e1,e1,e1,smech
@@ -320,7 +320,7 @@ World:
OuterSupportRadius: 5
StartingUnits@light.nod:
Class: light
ClassName: light
ClassName: options-starting-units.light
Factions: nod
BaseActor: mcv
SupportActors: e1,e1,e1,bggy
@@ -328,7 +328,7 @@ World:
OuterSupportRadius: 5
StartingUnits@med.gdi:
Class: medium
ClassName: medium
ClassName: options-starting-units.medium
Factions: gdi
BaseActor: mcv
SupportActors: e1,e1,e2,e2,jumpjet,smech
@@ -336,7 +336,7 @@ World:
OuterSupportRadius: 5
StartingUnits@med.nod:
Class: medium
ClassName: medium
ClassName: options-starting-units.medium
Factions: nod
BaseActor: mcv
SupportActors: e1,e1,e3,e3,cyborg,bggy
@@ -344,7 +344,7 @@ World:
OuterSupportRadius: 5
StartingUnits@heavy.gdi:
Class: heavy
ClassName: heavy
ClassName: options-starting-units.heavy
Factions: gdi
BaseActor: mcv
SupportActors: e1,e1,e2,e2,jumpjet,smech,smech,mmch
@@ -352,7 +352,7 @@ World:
OuterSupportRadius: 5
StartingUnits@heavy.nod:
Class: heavy
ClassName: heavy
ClassName: options-starting-units.heavy
Factions: nod
BaseActor: mcv
SupportActors: e1,e1,e3,e3,cyborg,bggy,bike,ttnk