Extract translation strings.

This commit is contained in:
Matthias Mailänder
2022-07-03 18:54:50 +02:00
committed by abcdefg30
parent 867efcc6e8
commit 9b2e291a46
110 changed files with 899 additions and 331 deletions

View File

@@ -136,7 +136,7 @@ CaptureRadarDome = function()
end
end)
Media.DisplayMessage("Coordinates of the Soviet tech centers discovered.")
Media.DisplayMessage(UserInterface.Translate("soviet-tech-centers-discovered"))
if Difficulty == "easy" then
Actor.Create("Camera", true, { Owner = player, Location = Weapcam.Location })
@@ -151,13 +151,13 @@ InfiltrateTechCenter = function()
return
end
infiltrated = true
DestroySovietsObj = player.AddObjective("Destroy all Soviet buildings and units in the area.")
DestroySovietsObj = AddPrimaryObjective(player, "destroy-soviet-buildings-units")
player.MarkCompletedObjective(InfiltrateTechCenterObj)
end)
Trigger.OnCapture(a, function()
if not infiltrated then
Media.DisplayMessage("Do not capture the tech centers! Infiltrate one with a spy.")
Media.DisplayMessage(UserInterface.Translate("dont-capture-tech-centers"))
end
end)
end)
@@ -185,8 +185,8 @@ WorldLoaded = function()
InitObjectives(player)
InfiltrateTechCenterObj = player.AddObjective("Infiltrate one of the Soviet tech centers with a spy.")
CaptureRadarDomeObj = player.AddObjective("Capture the Radar Dome at the shore.", "Secondary", false)
InfiltrateTechCenterObj = AddPrimaryObjective(player, "infiltrate-tech-center-spy")
CaptureRadarDomeObj = AddSecondaryObjective(player, "capture-radar-shore")
Camera.Position = DefaultCameraPosition.CenterPosition