From: terencehill Date: Tue, 9 Jun 2020 08:28:15 +0000 (+0200) Subject: Get rid of 6 redundant translatable strings X-Git-Tag: xonotic-v0.8.5~929 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=91024417045b13a85bffa30969b0ebc8527f20a5;p=xonotic%2Fxonotic-data.pk3dir.git Get rid of 6 redundant translatable strings --- diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index a049b98f2..2d2a5c4fb 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -978,16 +978,11 @@ float GetSpeedUnitFactor(int speed_unit) switch(speed_unit) { default: - case 1: - return 1.0; - case 2: - return 0.0254; - case 3: - return 0.0254 * 3.6; - case 4: - return 0.0254 * 3.6 * 0.6213711922; - case 5: - return 0.0254 * 1.943844492; // 1 m/s = 1.943844492 knots, because 1 knot = 1.852 km/h + case 1: return 1.0; + case 2: return 0.0254; + case 3: return 0.0254 * 3.6; + case 4: return 0.0254 * 3.6 * 0.6213711922; + case 5: return 0.0254 * 1.943844492; // 1 m/s = 1.943844492 knots, because 1 knot = 1.852 km/h } } @@ -995,17 +990,13 @@ string GetSpeedUnit(int speed_unit) { switch(speed_unit) { + // translator-friendly strings without the initial space default: - case 1: - return _(" qu/s"); - case 2: - return _(" m/s"); - case 3: - return _(" km/h"); - case 4: - return _(" mph"); - case 5: - return _(" knots"); + case 1: return strcat(" ", _("qu/s")); + case 2: return strcat(" ", _("m/s")); + case 3: return strcat(" ", _("km/h")); + case 4: return strcat(" ", _("mph")); + case 5: return strcat(" ", _("knots")); } } diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc index 1244ee86b..7473e8e8d 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc @@ -208,7 +208,7 @@ void XonoticMutatorsDialog_fill(entity me) me.TD(me, 1, 2, makeXonoticTextLabel(0, _("Weapon & item mutators:"))); me.TR(me); me.TDempty(me, 0.2); - me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_grappling_hook", _("Grappling hook"), + me.TD(me, 1, 1.8, e = makeXonoticCheckBox_T(0, "g_grappling_hook", _("Grappling Hook"), _("Players spawn with the grappling hook. Press the 'hook' key to use it"))); me.TR(me); me.TDempty(me, 0.2);