From 1f893ef7a61a7e535a83425cc356a53053b84c47 Mon Sep 17 00:00:00 2001 From: otta8634 Date: Wed, 11 Sep 2024 20:01:29 +0800 Subject: [PATCH] Minimise transifex string changes Many strings will need translation updated regardless --- qcsrc/client/hud/panel/centerprint.qc | 4 ++-- qcsrc/client/hud/panel/radar.qc | 7 ++++--- qcsrc/client/hud/panel/scoreboard.qc | 6 +++--- qcsrc/client/hud/panel/vote.qc | 4 ++-- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index 5f5518daf..b9ebd3a91 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -208,7 +208,7 @@ void HUD_CenterPrint() } else { - centerprint_Add(0, CCR(_("^BGGeneric message")), 10, 0); + centerprint_Add(0, strcat(CCR("^BG"), _("Generic message")), 10, 0); hud_configure_cp_generation_time = time + 10 - random()*3; } } @@ -300,7 +300,7 @@ void HUD_CenterPrint() drawcolorcodedstring(pos, centerprint_title_left, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL); pos.x = duel_title_pos.x + max_rl_width + padding * 3; - drawcolorcodedstring(pos, CCR(_("^BGvs")), fontsize, panel_fg_alpha, DRAWFLAG_NORMAL); + drawcolorcodedstring(pos, strcat(CCR("^BG"), _("vs")), fontsize, panel_fg_alpha, DRAWFLAG_NORMAL); pos.x = duel_title_pos.x + width - padding - max_rl_width; if (left_width >= right_width) diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 4753de515..5c9fe086c 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -336,13 +336,14 @@ void HUD_Radar() if ( hud_panel_radar_mouse ) { - string message = CCR(_("^BGClick to select teleport destination")); + string message = _("Click to select teleport destination"); if ( STAT(HEALTH) <= 0 ) { - message = CCR(_("^BGClick to select spawn location")); + message = _("Click to select spawn location"); } - + + message = strcat(CCR("^BG"), message); drawcolorcodedstring(pos + '0.5 0 0' * (mySize_x - stringwidth(message, true, hud_fontsize)) - '0 1 0' * hud_fontsize_y * 2, message, hud_fontsize, hud_panel_radar_foreground_alpha, DRAWFLAG_NORMAL); diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 8ad47d4f8..571898472 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1790,7 +1790,7 @@ vector Scoreboard_AccuracyStats_Draw(vector pos, vector rgb, vector bg_size) float weapon_height = hud_fontsize.y * 2.3 / aspect; float height = weapon_height + hud_fontsize.y; - drawcolorcodedstring(pos + eX * panel_bg_padding, sprintf(CCR(_("^BGAccuracy stats (average %d%%)")), average_accuracy), hud_fontsize, panel_fg_alpha * scoreboard_acc_fade_alpha, DRAWFLAG_NORMAL); + drawcolorcodedstring(pos + eX * panel_bg_padding, strcat(CCR("^BG"), sprintf(_("Accuracy stats (average %d%%)"), average_accuracy)), hud_fontsize, panel_fg_alpha * scoreboard_acc_fade_alpha, DRAWFLAG_NORMAL); pos.y += 1.25 * hud_fontsize.y; if(panel.current_panel_bg != "0") pos.y += panel_bg_border; @@ -1947,7 +1947,7 @@ vector Scoreboard_ItemStats_Draw(vector pos, vector rgb, vector bg_size) float item_height = hud_fontsize.y * 2.3; float height = item_height + hud_fontsize.y; - drawcolorcodedstring(pos + eX * panel_bg_padding, CCR(_("^BGItem stats")), hud_fontsize, panel_fg_alpha * scoreboard_itemstats_fade_alpha, DRAWFLAG_NORMAL); + drawcolorcodedstring(pos + eX * panel_bg_padding, strcat(CCR("^BG"), _("Item stats")), hud_fontsize, panel_fg_alpha * scoreboard_itemstats_fade_alpha, DRAWFLAG_NORMAL); pos.y += 1.25 * hud_fontsize.y; if(panel.current_panel_bg != "0") pos.y += panel_bg_border; @@ -2058,7 +2058,7 @@ vector Scoreboard_MapStats_Draw(vector pos, vector rgb, vector bg_size) { return pos; // draw table header - drawcolorcodedstring(pos + eX * panel_bg_padding, CCR(_("^BGMap stats:")), hud_fontsize, panel_fg_alpha, DRAWFLAG_NORMAL); + drawcolorcodedstring(pos + eX * panel_bg_padding, strcat(CCR("^BG"), _("Map stats:")), hud_fontsize, panel_fg_alpha, DRAWFLAG_NORMAL); pos.y += 1.25 * hud_fontsize.y; if(panel.current_panel_bg != "0") pos.y += panel_bg_border; diff --git a/qcsrc/client/hud/panel/vote.qc b/qcsrc/client/hud/panel/vote.qc index 0c9861648..5c141a1fa 100644 --- a/qcsrc/client/hud/panel/vote.qc +++ b/qcsrc/client/hud/panel/vote.qc @@ -118,9 +118,9 @@ void HUD_Vote() } mySize = newSize; - s = CCR(_("^BGA vote has been called for:")); + s = strcat(CCR("^BG"), _("A vote has been called for:")); if(uid2name_dialog) - s = CCR(_("^BGAllow servers to store and display your name?")); + s = strcat(CCR("^BG"), _("Allow servers to store and display your name?")); drawcolorcodedstring_aspect(pos, s, vec2(mySize.x, (2/8) * mySize.y), panel_fg_alpha, DRAWFLAG_NORMAL); s = textShortenToWidth(ColorTranslateRGB(vote_called_vote), mySize.x, '1 1 0' * mySize.y * (1/8), stringwidth_colors); if(autocvar__hud_configure) -- 2.39.2