Arma 3 Scripting

diag_localized

  • Arma 3 v2.04

Command · also in Localization · Markdown · JSON · original wiki page

Description

Returns array with all localized keys from the given stringtable or the array of all stringtables names if empty string "" is given. Common stringtables are: "Global", "Mission", "Campaign".

Syntax

diag_localized stringtable

Parameters:

Returns: Array Strings - see description

Examples

Example 1

private _randomKey = selectRandom diag_localized "Global";
hint format ["Key: %1\nValue: %2", _randomKey, localize _randomKey];

Example 2

private _allTables = diag_localized "";

Example 3

diag_localized "Global" select 0; // "$STR_A3_SHOWCASE_SLINGLOADING_15_AMMODROPPED_PIL_0"

See also

localize · isLocalized · getTextRaw · Stringtable.csv · Stringtable.xml · BIS_fnc_localize