isLocalized: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 16: | Line 16: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf> | ||
if (isLocalized "STR_USRACT_ADJUST") then | |||
{ | { | ||
hint localize "STR_USRACT_ADJUST"; | |||
} | } | ||
else | |||
{ | { | ||
hint "STR_USRACT_ADJUST"; | |||
diag_log "ToDo: STR_USRACT_ADJUST is not localized"; | |||
};</ | }; | ||
</sqf> | |||
|x2= < | |x2= <sqf>isLocalized "$STR_USRACT_ADJUST"; // Since Arma v2.04</sqf> | ||
|seealso= [[localize]] [[diag_localized]] [[getTextRaw]] [[WFSideText]] [[Stringtable.csv]] [[Stringtable.xml]] [[BIS_fnc_localize]] | |seealso= [[localize]] [[diag_localized]] [[getTextRaw]] [[WFSideText]] [[Stringtable.csv]] [[Stringtable.xml]] [[BIS_fnc_localize]] | ||
}} | }} |
Revision as of 20:31, 18 April 2022
Description
- Description:
- Checks whether given stringName is localized.
- Groups:
- StringsLocalization
Syntax
- Syntax:
- isLocalized stringName
- Parameters:
- stringName: String - String which leads to localisation. Casing does not matter. Since Arma 3 v2.04 a string starting with "$" is supported as well
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
- isLocalized "$STR_USRACT_ADJUST"; // Since Arma v2.04
Additional Information
- See also:
- localize diag_localized getTextRaw WFSideText Stringtable.csv Stringtable.xml BIS_fnc_localize
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