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

@@ -1496,3 +1496,5 @@ Actors:
Owner: Neutral
Rules: ra|rules/campaign-rules.yaml, ra|rules/campaign-tooltips.yaml, ra|rules/campaign-palettes.yaml, rules.yaml
Translations: ra|languages/lua/en.ftl

View File

@@ -24,7 +24,7 @@ MissionStart = function()
end)
Trigger.AfterDelay(DateTime.Seconds(45), function()
Media.DisplayMessage("Commander, the truck has stopped at a nearby allied base.\nAllied radio intercepts say the truck has orders to flee the battlefield\nif any Soviet units approach the base.")
Media.DisplayMessage(UserInterface.Translate("trucks-stopped-near-allied-base"))
end)
Trigger.OnKilled(StolenTruck, function()
@@ -40,7 +40,7 @@ end
Trigger.OnEnteredProximityTrigger(TruckAlarm.CenterPosition, WDist.FromCells(11), function(actor, triggerflee)
if actor.Owner == USSR and actor.Type ~= "badr" and actor.Type ~= "u2" and actor.Type ~= "camera.spyplane" then
Trigger.RemoveProximityTrigger(triggerflee)
Media.DisplayMessage("The convoy truck is attempting to escape!")
Media.DisplayMessage(UserInterface.Translate("convoy-truck-escaping"))
EscapeCamera = Actor.Create("camera", true, { Owner = USSR, Location = TruckAlarm.Location })
Media.PlaySoundNotification(USSR, "AlertBleep")
Utils.Do(TruckEscape, function(waypoint)
@@ -79,8 +79,8 @@ WorldLoaded = function()
InitObjectives(USSR)
DestroyTruck = USSR.AddObjective("Destroy the stolen convoy truck.\nDo not let it escape.")
DefendCommand = USSR.AddObjective("Defend our forward command center.")
DestroyTruck = AddPrimaryObjective(USSR, "destroy-stolen-convoy-truck")
DefendCommand = AddPrimaryObjective(USSR, "defend-forward-command-center")
Camera.Position = DefaultCameraPosition.CenterPosition