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 (Page filling) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| | |game1= arma3 | ||
|version1= 2.02 | |||
|gr1= Config | |gr1= Config | ||
| | |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 = <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|"$STR_ACTION_GETIN_DRIVER"}} | |x1= <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|"$STR_ACTION_GETIN_DRIVER"}} | ||
_key = _text [[select]] [1]; {{cc|"STR_ACTION_GETIN_DRIVER"}} | _key = _text [[select]] [1]; {{cc|"STR_ACTION_GETIN_DRIVER"}} | ||
_localized = [[localize]] _key; {{cc|"Get in %1 as Driver"}} | _localized = [[localize]] _key; {{cc|"Get in %1 as Driver"}} |
Revision as of 13:59, 23 February 2021
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:
- Config
Syntax
- Syntax:
- getTextRaw config
- Parameters:
- config: Config
- Return Value:
- String - raw text value
Examples
- Example 1:
_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:
- configFileconfig / nameconfigNamecountgetArraygetNumberinheritsFromisArrayisClassisNumberisTextselectgetTextlocalizeisLocalizeddiag_localized
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