X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fstatslist.qc;fp=qcsrc%2Fmenu%2Fxonotic%2Fstatslist.qc;h=51d95c1e3737276b097d6d8f2714c57704e5aa05;hp=2c600b6f5289e6d92a03569a0c2dabf03cab3ca7;hb=d02eee3f8176468df804d9ee4f6d05a91a4aef4d;hpb=977b7b4a4f568e1c26a395d90b9be63e0b353dd9 diff --git a/qcsrc/menu/xonotic/statslist.qc b/qcsrc/menu/xonotic/statslist.qc index 2c600b6f52..51d95c1e37 100644 --- a/qcsrc/menu/xonotic/statslist.qc +++ b/qcsrc/menu/xonotic/statslist.qc @@ -41,12 +41,11 @@ string XonoticStatsList_convertDate(string input) default: return input; // failed, why? } - return sprintf( - "%s %s, %d", - monthname, - count_ordinal(stof(substring(input, 8, 2))), - stof(substring(input, 0, 4)) - ); + string date = _("%m %d, %Y"); + date = strreplace("%Y", substring(input, 0, 4), date); + date = strreplace("%d", ftos(stof(substring(input, 8, 2))), date); // ftos-stof removes leading 0 + date = strreplace("%m", monthname, date); + return date; } void XonoticStatsList_getStats(entity me)