From: terencehill Date: Sat, 1 Jun 2019 21:17:39 +0000 (+0200) Subject: Add context prefix to date format string X-Git-Tag: xonotic-v0.8.5~1348^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a7a3a9124f63bd029ac86d971aed93f6252da3cb;p=xonotic%2Fxonotic-data.pk3dir.git Add context prefix to date format string --- diff --git a/qcsrc/menu/xonotic/statslist.qc b/qcsrc/menu/xonotic/statslist.qc index 51d95c1e3..7d19516cf 100644 --- a/qcsrc/menu/xonotic/statslist.qc +++ b/qcsrc/menu/xonotic/statslist.qc @@ -41,7 +41,7 @@ string XonoticStatsList_convertDate(string input) default: return input; // failed, why? } - string date = _("%m %d, %Y"); + string date = ZCTX(_("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);