Rename Lua UserInterface.Translate to .GetFluentMessage.

This commit is contained in:
Paul Chote
2024-10-19 14:52:36 +01:00
committed by Gustas
parent 8b11b499ed
commit 8452f71481
94 changed files with 308 additions and 308 deletions

View File

@@ -114,7 +114,7 @@ StartTimerFunction = function()
end
end
EnemyApproaching = UserInterface.Translate("enemy-approaching")
EnemyApproaching = UserInterface.GetFluentMessage("enemy-approaching")
FinishTimer = function()
for i = 0, 5, 1 do
local c = TimerColor
@@ -166,7 +166,7 @@ Tick = function()
if StartTimer then
if Ticked > 0 then
if (Ticked % DateTime.Seconds(1)) == 0 then
Timer = UserInterface.Translate("soviet-armored-battalion-arrives-in", { ["time"] = Utils.FormatTime(Ticked) })
Timer = UserInterface.GetFluentMessage("soviet-armored-battalion-arrives-in", { ["time"] = Utils.FormatTime(Ticked) })
UserInterface.SetMissionText(Timer, TimerColor)
end
Ticked = Ticked - 1