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
}
}
{
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"));
}
}
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);