Extract Tiberian Dawn campaign translations.

This commit is contained in:
Matthias Mailänder
2022-09-11 20:24:39 +02:00
committed by Gustas
parent b62cf7ee9a
commit 621c85059e
73 changed files with 377 additions and 126 deletions

View File

@@ -51,7 +51,7 @@ SendGDIReinforcements = function()
if GDIReinforcementsLeft > 0 then
GDIReinforcementsLeft = GDIReinforcementsLeft - 1
Trigger.AfterDelay(DateTime.Seconds(5), function()
Media.DisplayMessage("APC squads in reserve: " .. GDIReinforcementsLeft, "Battlefield Control")
Media.DisplayMessage(UserInterface.Translate("apcs-left", { ["apcs"] = GDIReinforcementsLeft }), UserInterface.Translate("battlefield-control"))
SendGDIReinforcements()
end)
end
@@ -104,8 +104,9 @@ WorldLoaded = function()
InitObjectives(GDI)
GDIObjective = GDI.AddObjective("Retrieve the crate with the stolen rods.")
ReinforcementsObjective = GDI.AddObjective("Eliminate " .. KillsUntilReinforcements .. " Nod units for reinforcements.", "Secondary", false)
GDIObjective = AddPrimaryObjective(GDI, "retrieve-rods")
local eliminateReinforcements = UserInterface.Translate("eliminate-reinforcements", { ["kills"] = KillsUntilReinforcements })
ReinforcementsObjective = AddSecondaryObjective(GDI, eliminateReinforcements)
SetupWorld()