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