diag localized: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - ";[ ]+ " to "; ") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}") |
||
Line 8: | Line 8: | ||
|gr2= Localization | |gr2= Localization | ||
|descr= 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"}}. | ||
|s1= [[diag_localized]] stringtable | |s1= [[diag_localized]] stringtable |
Revision as of 23:46, 15 November 2021
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:
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"
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