{"name":"BIS_fnc_localize","title":"BIS fnc localize","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_localize","revid":308934,"updated":"2022-04-18T19:33:30Z","groups":["Strings"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Checks if passed string is localization key and if so, return the localized text. Else, returns the passed string itself.","syntaxes":[{"syntax":"localizationString call BIS_fnc_localize","params":[{"name":"localizationString","type":"String","type_expr":"String"}],"returns":{"type":"String","type_expr":"String","description":"the localized text behind the key or the key itself (if not localized)."}}],"examples":[{"code":["// assuming the stringtable contains a key \"STR_someString\" with the value \"Hello world\"\n\"STR_someString\" call BIS_fnc_localize; // returns \"Hello world\"\n\n// assuming the stringtable does not contain a key \"STR_anotherString\"\n\"STR_anotherString\" call BIS_fnc_localize; // returns \"STR_anotherString\""]}],"see_also":["isLocalized","localize","Stringtable.xml"],"notes":[{"user":"Vincent H.","date":"2017-12-29T00:03:00Z","text":"Unfortunately localize does not exactly do the same as BIS_fnc_localize.\nBIS_fnc_localize also checks if it the input string isLocalized while localize will return an empty string if the input parameter is not localized."}]}