Quote:
function sc_GetDelayText(fullDelay, blockOnRoute)
local zeroTimespan = TIMESPAN_0
local delayText = ""
if blockOnRoute then
delayText = m_i18n(L"Infinite")
elseif fullDelay > zeroTimespan then
delayText = L"+" .. Format.Timespan(fullDelay)
else
delayText = Format.Timespan(fullDelay)
end
return delayText
end
It seems to be intentional so that it returns an extended text string. If m_i18n() were not able to do that, the line should have been written this way: delayText =towstring(m_i18n("Infinite"))