mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix Localization in value[] array
This commit is contained in:
parent
4e5c2ef187
commit
53af014eab
@ -76,6 +76,18 @@ if (isNil _name) then {
|
|||||||
_value
|
_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;
|
GVAR(settings) pushBack _settingData;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user