isLocalized: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 10: | Line 10: | ||
|descr= Checks whether given ''stringName'' is [[localize]]d. | |descr= Checks whether given ''stringName'' is [[localize]]d. | ||
|s1= | |s1= [[isLocalized]] stringName | ||
|p1= stringName: [[String]] - String which leads to localisation. Casing does not matter. Since Arma 3 v2.04 a string starting with <tt>"$"</tt> is supported as well | |p1= stringName: [[String]] - String which leads to localisation. Casing does not matter. Since Arma 3 v2.04 a string starting with <tt>"$"</tt> is supported as well |
Revision as of 22:13, 19 June 2021
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:
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"; };
- Example 2:
isLocalized "$STR_USRACT_ADJUST"; // Since Arma v2.04
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