Arma 3 Scripting

Function in Strings

BIS_fnc_localize

Also available as Markdown and JSON, or read the original wiki page.

Description

Checks if passed string is localization key and if so, return the localized text. Else, returns the passed string itself.

Syntax

localizationString call BIS_fnc_localize

Parameters:

Returns: String - the localized text behind the key or the key itself (if not localized).

Examples

Example 1

// assuming the stringtable contains a key "STR_someString" with the value "Hello world"
"STR_someString" call BIS_fnc_localize; // returns "Hello world"

// assuming the stringtable does not contain a key "STR_anotherString"
"STR_anotherString" call BIS_fnc_localize; // returns "STR_anotherString"

See also

isLocalized · localize · Stringtable.xml

Community notes