Fix Localization in value[] array

This commit is contained in:
PabstMirror 2015-04-16 19:29:39 -05:00
parent 4e5c2ef187
commit 53af014eab

View File

@ -75,6 +75,18 @@ if (isNil _name) then {
getNumber (_optionEntry >> "force") > 0,
_value
];
//Strings in the values array won't be localized from the config, so just do that now:
private "_values";
_values = _settingData select 5;
{
_text = _x;
if (((typeName _text) == "STRING") && {(count _text) > 1} && {(_text select [0,1]) == "$"}) then {
_text = localize (_text select [1, ((count _text) - 1)]); //chop off the leading $
_values set [_forEachIndex, _text];
};
} forEach _values;
GVAR(settings) pushBack _settingData;