From e368ae28f59aa649b174ef490695bff9e9df240b Mon Sep 17 00:00:00 2001 From: jonpas Date: Mon, 24 Aug 2015 01:13:42 +0200 Subject: [PATCH] Fixed localization on same type hitpoints --- addons/repair/functions/fnc_addRepairActions.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/repair/functions/fnc_addRepairActions.sqf b/addons/repair/functions/fnc_addRepairActions.sqf index db18e6f392..299466db60 100644 --- a/addons/repair/functions/fnc_addRepairActions.sqf +++ b/addons/repair/functions/fnc_addRepairActions.sqf @@ -95,6 +95,7 @@ _hitPointsAddedAmount = []; _name = format ["Repair_%1", _x]; + // Prepare first part of the string from stringtable _text = LSTRING(Hit); @@ -117,7 +118,7 @@ _hitPointsAddedAmount = []; // Use already added hitpoint if one found above and numerize if (_hitPointFoundIndex != -1) exitWith { - _text = (_hitPointsAddedNames select _hitPointFoundIndex) + " " + str(_hitPointsAddedAmount select _hitPointFoundIndex); + _text = localize (_hitPointsAddedStrings select _hitPointFoundIndex) + " " + str(_hitPointsAddedAmount select _hitPointFoundIndex); _hitPointsAddedAmount set [_hitPointFoundIndex, (_hitPointsAddedAmount select _hitPointFoundIndex) + 1]; // Set amount TRACE_2("Same hitpoint found",_toFind,_hitPointsAddedNames); }; @@ -145,7 +146,6 @@ _hitPointsAddedAmount = []; }; - _icon = "A3\ui_f\data\igui\cfg\actions\repair_ca.paa"; _selection = ""; _condition = {[_this select 1, _this select 0, _this select 2 select 0, _this select 2 select 1] call DFUNC(canRepair)};