]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve and add context to some translatable messages
authorterencehill <piuntn@gmail.com>
Tue, 2 Jun 2020 09:59:05 +0000 (11:59 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 2 Jun 2020 09:59:05 +0000 (11:59 +0200)
qcsrc/menu/xonotic/dialog_disconnect.qh
qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc
qcsrc/menu/xonotic/dialog_settings_effects.qc
qcsrc/menu/xonotic/serverlist.qc
qcsrc/menu/xonotic/statslist.qc
qcsrc/server/client.qc

index a61dd775526527a7b7e374f5a311e2afe1c48f76..5e397cd1c5c3e2baaa0f9433fcbf96e72b54d6bc 100644 (file)
@@ -4,7 +4,7 @@
 CLASS(XonoticDisconnectDialog, XonoticDialog)
        METHOD(XonoticDisconnectDialog, fill, void(entity));
        ATTRIB(XonoticDisconnectDialog, title, string, _("Disconnect"));
-       ATTRIB(XonoticDisconnectDialog, tooltip, string, _("Disconnect server"));
+       ATTRIB(XonoticDisconnectDialog, tooltip, string, _("Disconnect from the server you are connected to"));
        ATTRIB(XonoticDisconnectDialog, color, vector, SKINCOLOR_DIALOG_QUIT);
        ATTRIB(XonoticDisconnectDialog, intendedWidth, float, 0.5);
        ATTRIB(XonoticDisconnectDialog, rows, float, 3);
index 7ef5172965ea72611f81b43887b5047f97d5536d..1244ee86b2433e7e2aa231331d9fe522b4e830d3 100644 (file)
@@ -165,7 +165,7 @@ void XonoticMutatorsDialog_fill(entity me)
        me.TR(me);
                me.TDempty(me, 0.2);
                me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_touchexplode", _("Touch explode"),
-                        _("An explosion occurs when two players collide")));
+                       _("An explosion occurs when two players collide")));
        me.TR(me);
                me.TDempty(me, 0.2);
                me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_cloaked", _("Cloaked"),
@@ -173,7 +173,7 @@ void XonoticMutatorsDialog_fill(entity me)
        me.TR(me);
                me.TDempty(me, 0.2);
                me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_buffs", _("Buffs"),
-                        _("Enable buff pickups (random bonuses like Medic, Invisible, etc.) on the maps that support it")));
+                       _("Enable buff pickups (random bonuses like Medic, Invisible, etc.) on the maps that support it")));
                        e.cvarOffValue = "-1"; // TODO: make this a radio button?
        me.TR(me);
                me.TDempty(me, 0.2);
@@ -217,17 +217,17 @@ void XonoticMutatorsDialog_fill(entity me)
        me.TR(me);
                me.TDempty(me, 0.2);
                me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_invincible_projectiles", _("Invincible Projectiles"),
-                        _("Projectiles can't be destroyed. However, Electro combos still work")));
+                       _("Projectiles can't be destroyed. However, you can still explode Electro orbs with the Electro primary fire")));
                        setDependent(e, "g_instagib", 0, 0);
        me.TR(me);
                me.TDempty(me, 0.2);
                me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_new_toys", _("New Toys"),
-                        _("Some weapon spawns will be randomly replaced with new weapons: Heavy Laser Assault Cannon, Mine Layer, Rifle, T.A.G. Seeker")));
+                       _("Some weapon spawns will be randomly replaced with new weapons: Heavy Laser Assault Cannon, Mine Layer, Rifle, T.A.G. Seeker")));
                        setDependentWeird(e, checkCompatibility_newtoys);
        me.TR(me);
                me.TDempty(me, 0.2);
                me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_rocket_flying", _("Rocket Flying"),
-                        _("Devastator rockets can be detonated instantly (otherwise, there's a short delay). This allows players to fire and detonate a Devastator rocket while in the air for a strong mid-air boost even while moving fast")));
+                       _("Devastator rockets can be detonated instantly (otherwise, there's a short delay). This allows players to fire and detonate a Devastator rocket while in the air for a strong mid-air boost even while moving fast")));
                        setDependent(e, "g_instagib", 0, 0);
        me.TR(me);
                me.TDempty(me, 0.2);
index 9841f66ff3f83313b093daa686083838b0e8b967..4d62d459e2f691d476c330f25b943f44ee1ba41d 100644 (file)
@@ -126,7 +126,7 @@ void XonoticEffectsSettingsTab_fill(entity me)
                }
        me.TR(me);
                me.TDempty(me, 0.2);
-               me.TD(me, 1, 1, e = makeXonoticCheckBoxEx_T(1, 0, "r_sky", _("Show skyboxes"), _("Disable skyboxes for performance and visibility")));
+               me.TD(me, 1, 1, e = makeXonoticCheckBoxEx_T(1, 0, "r_sky", _("Show sky"), _("Disable sky for performance and visibility")));
                if(cvar("developer") > 0)
                {
                        me.TD(me, 1, 1, e = makeXonoticCheckBoxEx_T(3, 0, "r_showsurfaces", _("Show surfaces"),
index 65797e2bffc827e7e48c57a11693eee78fb4d85f..caf69f34afb7e4e7e0d85a643fad1cffb7d5ed5d 100644 (file)
@@ -253,12 +253,12 @@ void ServerList_Update_favoriteButton(entity btn, entity me)
        entity e = me.favoriteButton;
        if(IsFavorite(me.ipAddressBox.text))
        {
-               e.setText(e, _("Remove favorite"));
+               e.setText(e, _("SERVER^Remove favorite"));
                setZonedTooltip(e, _("Remove the currently highlighted server from bookmarks"), string_null);
        }
        else
        {
-               e.setText(e, _("Favorite"));
+               e.setText(e, _("SERVER^Favorite"));
                setZonedTooltip(e, _("Bookmark the currently highlighted server so that it's faster to find in the future"), string_null);
        }
 }
index 7d19516cf01673cfd38f150a63ab4678de6612ca..d1edd5948e8a91ecce5dbf522a3bfb30eff27641 100644 (file)
@@ -41,6 +41,8 @@ string XonoticStatsList_convertDate(string input)
                default: return input; // failed, why?
        }
 
+       // without no-c-format this string looks messed up in Transifex since only %d is a valid c placeholder
+       /* xgettext:no-c-format */
        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
index 9632397f50e9898c2f2e3ad3b2b4eac3180ade42..af2846c8cdaf84838a0fa38d8a9bc1f9d31edbf2 100644 (file)
@@ -1323,7 +1323,7 @@ void UpdateChatBubble(entity this)
 
 void respawn(entity this)
 {
-       int damagedbycontents_prev = this.damagedbycontents;
+       bool damagedbycontents_prev = this.damagedbycontents;
        if(this.alpha >= 0)
        {
                if(autocvar_g_respawn_ghosts)