From 0d9af7803a7b5a19011a7830b1cbd66597ba293a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 12 Jul 2023 11:11:48 +0200 Subject: [PATCH] Chess: Make time message translatable --- src/chess.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/chess.lua b/src/chess.lua index 5ef0b9b..9b5d932 100644 --- a/src/chess.lua +++ b/src/chess.lua @@ -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)