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,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