{"name":"isLocalized","operator":null,"title":"isLocalized","type":"command","url":"https://community.bistudio.com/wiki/isLocalized","revid":349114,"updated":"2023-11-08T14:49:37Z","groups":["Strings","Localization"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Checks whether given *stringName* is localized.","syntaxes":[{"syntax":"isLocalized stringName","since":null,"effect":null,"exec":null,"params":[{"name":"stringName","type":"String","optional":false,"default":null,"description":"string which leads to localisation. Casing does not matter. Since Arma 3 v2.04 a string starting with `\"$\"` is supported as well","types":["String"],"since":null,"text":"stringName: String - string which leads to localisation. Casing does not matter. Since Arma 3 v2.04 a string starting with `\"$\"` is supported as well"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"unary","operator":null,"left":null,"right":{"text":"stringName","types":["String"]}}],"examples":[{"text":"```sqf\nif (isLocalized \"STR_USRACT_ADJUST\") then \n{\n    hint localize \"STR_USRACT_ADJUST\";\n} \nelse \n{\n    hint \"STR_USRACT_ADJUST\";\n    diag_log \"ToDo: STR_USRACT_ADJUST is not localized\";\n};\n```","code":["if (isLocalized \"STR_USRACT_ADJUST\") then \n{\n\thint localize \"STR_USRACT_ADJUST\";\n} \nelse \n{\n\thint \"STR_USRACT_ADJUST\";\n\tdiag_log \"ToDo: STR_USRACT_ADJUST is not localized\";\n};"]},{"text":"```sqf\nisLocalized \"$STR_USRACT_ADJUST\"; // Since Arma v2.04\n```","code":["isLocalized \"$STR_USRACT_ADJUST\"; // Since Arma v2.04"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["localize","diag_localized","getTextRaw","WFSideText","Stringtable.csv","Stringtable.xml","BIS_fnc_localize"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Localization","Command Group: Strings","Introduced with Arma 3 version 0.50","Scripting Commands"]}