From 0fc9a33d384d3aaea7c128eedaf89800dbbe1db3 Mon Sep 17 00:00:00 2001 From: jonpas Date: Sun, 23 Aug 2015 21:11:45 +0200 Subject: [PATCH] Shortened sub-action text localization --- addons/repair/functions/fnc_addRepairActions.sqf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/repair/functions/fnc_addRepairActions.sqf b/addons/repair/functions/fnc_addRepairActions.sqf index 24ad3605ca..8f030d6e7f 100644 --- a/addons/repair/functions/fnc_addRepairActions.sqf +++ b/addons/repair/functions/fnc_addRepairActions.sqf @@ -88,12 +88,7 @@ _wheelHitPointSelections = _wheelHitPointsWithSelections select 1; _name = format ["Repair_%1", _x]; _text = format ["STR_ACE_Repair_%1", _x]; - - if (isLocalized _text) then { - _text = localize _text; - } else { - _text = _x; - }; + _text = if (isLocalized _text) then {localize _text} else {_x}; _icon = "A3\ui_f\data\igui\cfg\actions\repair_ca.paa"; _selection = "";