BIS fnc localize: Difference between revisions
Jump to navigation
Jump to search
(Added note about localize engine command) |
m (extra space breaking format removed) |
||
Line 10: | Line 10: | ||
| Checks if passed string is localization key and if so, return the localized text. Else, returns the passed string itself. | | Checks if passed string is localization key and if so, return the localized text. Else, returns the passed string itself. | ||
{{Feature arma3|This function does exactly the same as the command [[localize]]}} | {{Feature arma3|This function does exactly the same as the command [[localize]]}} | ||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 23:58, 30 December 2016
Description
- Description:
- Checks if passed string is localization key and if so, return the localized text. Else, returns the passed string itself.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [localizationString] call BIS_fnc_localize
- Parameters:
- localizationString: String
- Return Value:
- String - the localized text behind the key or the key itself (if not localized).
Examples
- Example 1:
//assuming the stringtable contains a key "STR_someString" with the value "Hello world" ["STR_someString"] call BIS_fnc_localize; //returns "Hello world" //assuming the stringtable does not contain a key "STR_anotherString" ["STR_anotherString"] call BIS_fnc_localize; //returns "STR_anotherString"
Additional Information
- See also:
- See also needed
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