getTextRaw: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 16: | Line 16: | ||
|r1= [[String]] - raw text value | |r1= [[String]] - raw text value | ||
|x1= < | |x1= <sqf> | ||
_key = _text | private _text = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "$STR_ACTION_GETIN_DRIVER" | ||
_localized = | _key = _text select [1]; // "STR_ACTION_GETIN_DRIVER" | ||
_localized == | _localized = localize _key; // "Get in %1 as Driver" | ||
_localized == getText (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // true | |||
</sqf> | |||
|seealso= [[Stringtable.xml]] [[localize]] [[isLocalized]] [[diag_localized]] [[BIS_fnc_localize]] [[getText]] [[getNumber]] [[getArray]] | |seealso= [[Stringtable.xml]] [[localize]] [[isLocalized]] [[diag_localized]] [[BIS_fnc_localize]] [[getText]] [[getNumber]] [[getArray]] | ||
}} | }} |
Revision as of 20:39, 18 April 2022
Description
- Description:
- Returns raw text from config entry. If entry is subject to localization, the translation key is returned. To obtain the localized text, see getText.
- Groups:
- ConfigLocalization
Syntax
- Syntax:
- getTextRaw config
- Parameters:
- config: Config
- Return Value:
- String - raw text value
Examples
- Example 1:
- private _text = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "$STR_ACTION_GETIN_DRIVER" _key = _text select [1]; // "STR_ACTION_GETIN_DRIVER" _localized = localize _key; // "Get in %1 as Driver" _localized == getText (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // true
Additional Information
- See also:
- Stringtable.xml localize isLocalized diag_localized BIS_fnc_localize getText getNumber getArray
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