diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index f0b08e3d7..79d7e4278 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -19813,6 +19813,13 @@ Grote Wapenzak <br/>Inhoud: 70 liter Grand Fourreau <br/>Taille: 70 + + %1 <br/>Capacity: %2 items + %1 <br/>Volumen: %2 Liter + %1 %2 слотов + %1 <br/>Inhoud: %2 liter + %1 <br/>Taille: %2 + HALO Jump diff --git a/SQF/dayz_code/system/handleGearFunctions.sqf b/SQF/dayz_code/system/handleGearFunctions.sqf index 47c6a07b7..a313788ca 100644 --- a/SQF/dayz_code/system/handleGearFunctions.sqf +++ b/SQF/dayz_code/system/handleGearFunctions.sqf @@ -207,7 +207,15 @@ HG_itemDescription = { if (_inputItem call HG_isBackpack) then { _name = getText(configfile >> "cfgVehicles" >> _inputItem >> "descriptionShort"); - _return = ( _name); + + if (_name == "") then { + private ["_displayname","_capacity"]; + + _displayname = getText(configfile >> "cfgVehicles" >> _inputItem >> "displayname"); + _capacity = getNumber(configfile >> "cfgVehicles" >> _inputItem >> "transportMaxMagazines"); + _name = [_displayname,format[localize "STR_BACKPACK_NO_DESC",_displayname,_capacity]] select (_capacity > 0); + }; + _return = (_name); }; _return