[open] FormatTime() inconsistent in different languages
function ZO_Stats:CreateMountSection() formats time to next training with this:
Lua Code:
The strings this function returns with STYLE_COLONS and PRECISION_TWELVE_HOUR are strangely inconsistent. The same applies to ZO_FormatTime, as well as the API functions these two invoke: FormatTimeMilliseconds and FormatTime. language "en" always returns strings like "19h 26m 40s" never with colons sidenote: the spaces are ASCII SPACE, looks kinda bad with line breaks, I'd use NBSP language "de" if time is under 1 hour, returns "26 m 40 s" if time is above 1 hour, returns "19:26:40" COLONS!!! language "fr" if time is under 1 hour, returns "26 m 40 s" if time is above 1 hour, returns "19h 26m 40s" again no colons why is there a space after number SOMETIMES? |
All times are GMT -6. The time now is 09:12 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI