]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minimise transifex string changes
authorotta8634 <k9wolf@pm.me>
Wed, 11 Sep 2024 12:01:29 +0000 (20:01 +0800)
committerotta8634 <k9wolf@pm.me>
Wed, 11 Sep 2024 12:01:29 +0000 (20:01 +0800)
Many strings will need translation updated regardless

qcsrc/client/hud/panel/centerprint.qc
qcsrc/client/hud/panel/radar.qc
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/client/hud/panel/vote.qc

index 5f5518dafc97b0949c83bd7070434af338a80e76..b9ebd3a9114c29000a2cab1f058e655477ce3a00 100644 (file)
@@ -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)
index 4753de515d0929145f3545d50c8493f29d851a4c..5c9fe086cf260cb12e42f780944fa7512aa19036 100644 (file)
@@ -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);
 
index 8ad47d4f8ec9dbe00e0e4157c3ee939c784e148b..57189847259f0aad82fb032ccb6157ae283c0ff5 100644 (file)
@@ -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;
index 0c98616487e205ad021160de81eeab87cd2b599d..5c141a1fa085ab1fe0ec071b528b8d4a40fd251d 100644 (file)
@@ -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)