diag localized: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| | |game1= arma3 | ||
|version1= 2.04 | |||
|gr1= Strings | |gr1= Strings | ||
| | |gr2= Localization | ||
| Returns array with all [[localize]]d keys from the given [[Stringtable.xml | stringtable]] or the array of all stringtables names if empty string | |descr= Returns array with all [[localize]]d keys from the given [[Stringtable.xml | stringtable]] or the array of all stringtables names if empty string {{hl|""}} is given. Common stringtables are: {{hl|"Global"}}, {{hl|"Mission"}}, {{hl|"Campaign"}}. | ||
| [[diag_localized]] stringtable | |s1= [[diag_localized]] stringtable | ||
|p1 = | |p1= stringtable: [[String]] - stringtable name or "" | ||
| [[Array]] - array of [[ | |r1= [[Array]] - array of [[String]]s, see description | ||
|x1 = < | |x1= <sqf> | ||
private _randomKey = selectRandom diag_localized "Global"; | |||
hint format ["Key: %1\nValue: %2", _randomKey, localize _randomKey]; | |||
</sqf> | |||
|x2 = < | |x2= <sqf>private _allTables = diag_localized "";</sqf> | ||
|x3 = < | |x3= <sqf>diag_localized "Global" select 0; // "$STR_A3_SHOWCASE_SLINGLOADING_15_AMMODROPPED_PIL_0"</sqf> | ||
| [[localize]] | |seealso= [[localize]] [[isLocalized]] [[getTextRaw]] [[Stringtable.csv]] [[Stringtable.xml]] [[BIS_fnc_localize]] | ||
}} | }} |
Latest revision as of 21:51, 16 February 2024
Description
- 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".
- Groups:
- StringsLocalization
Syntax
- Syntax:
- diag_localized stringtable
- Parameters:
- stringtable: String - stringtable name or ""
- Return Value:
- Array - array of Strings, see description
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note