From: terencehill Date: Fri, 26 Apr 2019 16:01:39 +0000 (+0200) Subject: Make translatable various centerprint example messages X-Git-Tag: xonotic-v0.8.5~1525 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=151a28add047a19337095b7f09202d80b34f9227;p=xonotic%2Fxonotic-data.pk3dir.git Make translatable various centerprint example messages --- diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index 3827ff89f..d5601e5a3 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -137,16 +137,16 @@ void HUD_CenterPrint () float r; r = random(); if (r > 0.8) - centerprint_generic(floor(r*1000), strcat(sprintf("^3Countdown message at time %s", seconds_tostring(time)), ", seconds left: ^COUNT"), 1, 10); + centerprint_generic(floor(r*1000), sprintf(_("^3Countdown message at time %s, seconds left: ^COUNT"), seconds_tostring(time)), 1, 10); else if (r > 0.55) - centerprint_generic(0, sprintf("^1Multiline message at time %s that\n^1lasts longer than normal", seconds_tostring(time)), 20, 0); + centerprint_generic(0, sprintf(_("^1Multiline message at time %s that\n^1lasts longer than normal"), seconds_tostring(time)), 20, 0); else - centerprint_hud(sprintf("Message at time %s", seconds_tostring(time))); + centerprint_hud(sprintf(_("Message at time %s"), seconds_tostring(time))); hud_configure_cp_generation_time = time + 1 + random()*4; } else { - centerprint_generic(0, "Centerprint message", 10, 0); + centerprint_generic(0, _("Generic message"), 10, 0); hud_configure_cp_generation_time = time + 10 - random()*3; } }