From: terencehill Date: Fri, 26 Apr 2019 19:06:30 +0000 (+0200) Subject: Make use of an existent translatable string to compose "^1Intermediate 1 (+15.42)" X-Git-Tag: xonotic-v0.8.5~1521 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8990b42d7c217b83d4cb863790b85e7a9f2d20ca;p=xonotic%2Fxonotic-data.pk3dir.git Make use of an existent translatable string to compose "^1Intermediate 1 (+15.42)" --- diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index f82b60c4a..281b2377f 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -148,7 +148,7 @@ void HUD_RaceTimer () str_pos = pos + eX * 0.5 * (mySize.x - stringwidth(s, false, '1 1 0' * 0.6 * mySize.y)); drawstring(str_pos, s, '1 1 0' * 0.6 * mySize.y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL); draw_endBoldFont(); - s = _("^1Intermediate 1 (+15.42)"); + s = strcat("^1", sprintf(_("Intermediate %d"), 1), " (+15.42)"); str_pos = pos + vec2(0.5 * (mySize.x - stringwidth(s, true, '1 1 0' * 0.2 * mySize.y)), 0.6 * mySize.y); drawcolorcodedstring(str_pos, s, '1 1 0' * 0.2 * mySize.y, panel_fg_alpha, DRAWFLAG_NORMAL); s = sprintf(_("PENALTY: %.1f (%s)"), 2, _("missing a checkpoint"));