Chess: Make time message translatable

This commit is contained in:
Wuzzy 2023-07-12 11:11:48 +02:00
parent d6497ab42b
commit 0d9af7803a

View File

@ -1686,10 +1686,12 @@ local function timeout_format(timeout_limit)
local seconds = time_remaining % 60
if minutes == 0 then
return seconds .. " sec."
-- number of seconds
return S("@1 s", seconds)
end
return minutes .. " min. " .. seconds .. " sec."
-- number of minutes and seconds
return S("@1 min @2 s", minutes, seconds)
end
function realchess.fields(pos, _, fields, sender)