Skip to content

Commit

Permalink
Tagging - Add: Support of localized string for tagging interaction (#…
Browse files Browse the repository at this point in the history
…7819)

* Add support of localized string

* Add: Support of localized string for tagging interaction

#7819 (comment)

* Update addons/tagging/functions/fnc_applyCustomTag.sqf

Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>

Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
  • Loading branch information
Vdauphin and mharis001 authored Jul 27, 2020
1 parent f2dfcce commit d3727d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/tagging/functions/fnc_applyCustomTag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ params ["_identifier", "_displayName", "_requiredItem"];
if !(GVAR(cachedTags) select {_x select 0 == _identifier} isEqualTo []) exitWith {
INFO_2("Tag with selected identifier already exists: %1 (%2)",_identifier,_displayName)
};

if (isLocalized _displayName) then {
_this set [1, localize _displayName];
};

_requiredItem = configName (configFile >> "CfgWeapons" >> _requiredItem); // Convert To config case
_this set [2, _requiredItem];

Expand Down

0 comments on commit d3727d7

Please sign in to comment.