Arma 3 Scripting

Command in Config, Localization

getTextRaw

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

Description

Returns raw text from config entry. If entry is subject to localization, the translation key is returned. To obtain the localized text, see getText.

Syntax

getTextRaw config

Parameters:

Returns: String - raw text value

Examples

Example 1

private _text = getText (configFile >> "CfgVehicles" >> "Thing" >> "displayName");            // "Get in %1 as Driver"
private _rawText = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName");    // "$STR_ACTION_GETIN_DRIVER"
private _localized = localize _text;                                                        // "Get in %1 as Driver"
_localized == _text; // true

See also

Stringtable.xml · localize · isLocalized · diag_localized · BIS_fnc_localize · getText · getNumber · getArray