Jump to content

Game time overlay bug


Yekaterina
 Share

Recommended Posts

Greetings!

The game time overlay resets itself every 2 minutes after I changed 0A.D's interface language to Turkish. At minute 3:00 it was showing minute 1:00, and at minute 16:50 it was showing 00:50. It is a very funny bug but isn't helpful for timing myself. 

Screenshot_20220306_200809.thumb.png.717a33e4eba5c107b0411e26e41161e4.png

A friend who joined later told me to switch to English language and the bug disappeared. However, even in English mode, the timer crashes sometimes if I spam click too much; it also crashes after big battles. 

Link to comment
Share on other sites

function timeToString(time)
{
        return Engine.FormatMillisecondsIntoDateStringGMT(time, time < 1000 * 60 * 60 ?
                // Translation: Time-format string. See http://userguide.icu-project.org/formatparse/datetime for a guide to the meaning of the letters.
                translate("mm:ss") : translate("HH:mm:ss"));
}
                                                                           
$ grep -A 1 'mm:ss' binaries/data/mods/mod/l10n/tr*
msgid "mm:ss"
msgstr "dd:ss"
--
msgid "HH:mm:ss"
msgstr "SS:dd:ss"

Turkish localization missing minutes in time template

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...