getTextRaw: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| | |game1= arma3 | ||
|version1= 2.02 | |||
|gr1= Config | |gr1= Config | ||
| | |gr2= Localization | ||
| Returns raw text from config entry. If entry is subject to [[localize | localization]], the translation key is returned. To obtain the [[isLocalized | localized]] text, see [[getText]]. | |descr= Returns raw text from config entry. If entry is subject to [[localize | localization]], the translation key is returned. To obtain the [[isLocalized | localized]] text, see [[getText]]. | ||
| [[getTextRaw]] config | |s1= [[getTextRaw]] config | ||
|p1 = config: [[Config]] | |p1= config: [[Config]] | ||
| [[String]] - raw text value | |r1= [[String]] - raw text value | ||
|x1 = < | |x1= <sqf> | ||
private _text = getText (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "Get in %1 as Driver" | |||
private _rawText = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "$STR_ACTION_GETIN_DRIVER" | |||
private _localized = localize _text; // "Get in %1 as Driver" | |||
_localized == _text; // true | |||
</sqf> | |||
|seealso= [[ | |seealso= [[Stringtable.xml]] [[localize]] [[isLocalized]] [[diag_localized]] [[BIS_fnc_localize]] [[getText]] [[getNumber]] [[getArray]] | ||
}} | }} |
Latest revision as of 14:18, 18 September 2023
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 = getText (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "Get in %1 as Driver" private _rawText = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "$STR_ACTION_GETIN_DRIVER" private _localized = localize _text; // "Get in %1 as Driver" _localized == _text; // 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