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

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