Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/datetime.js
- This file was added.
function durationToString(time) | |||||
{ | |||||
return Engine.FormatMillisecondsIntoDateStringGMT(time, time < 1000 * 60 * 60 ? | |||||
// Translation: Format of the time elapsed or remaining as shown for example in game durations, | |||||
// the production queue, and ceasefire and victory countdowns. | |||||
// For a list of symbols that you can use, see: | |||||
// http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Field-Symbol-Table | |||||
translateWithContext("duration less than one hour", "m:ss") : | |||||
// Translation: Format of the time elapsed or remaining as shown for example in game durations, | |||||
// the production queue, and ceasefire and victory countdowns. | |||||
// For a list of symbols that you can use, see: | |||||
// http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Field-Symbol-Table | |||||
translateWithContext("duration greater than one hour", "H:mm:ss")); | |||||
} |
Wildfire Games · Phabricator