Extract translation strings.

This commit is contained in:
Matthias Mailänder
2022-10-21 21:26:30 +02:00
committed by abcdefg30
parent 640e9d68b7
commit 5032b2b872
65 changed files with 575 additions and 268 deletions

View File

@@ -10,15 +10,11 @@
Difficulty = Map.LobbyOption("difficulty")
InitObjectives = function(player)
Trigger.OnObjectiveAdded(player, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
end)
Trigger.OnObjectiveCompleted(player, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective completed")
Media.DisplayMessage(p.GetObjectiveDescription(id), UserInterface.Translate("objective-completed"))
end)
Trigger.OnObjectiveFailed(player, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective failed")
Media.DisplayMessage(p.GetObjectiveDescription(id), UserInterface.Translate("objective-failed"))
end)
Trigger.OnPlayerLost(player, function()
@@ -33,6 +29,8 @@ InitObjectives = function(player)
end)
end
Mentat = UserInterface.Translate("mentat")
SendCarryallReinforcements = function(player, currentWave, totalWaves, delay, pathFunction, unitTypes, customCondition, customHuntFunction, announcementFunction)
Trigger.AfterDelay(delay, function()
if customCondition and customCondition() then