getTextRaw: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Page filling) |
(formatting and new command group) |
||
Line 6: | Line 6: | ||
|gr1= Config | |gr1= Config | ||
|gr2= Localization | |||
|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]]. | |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]]. | ||
Line 20: | Line 22: | ||
_localized == [[getText]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|true}}</code> | _localized == [[getText]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|true}}</code> | ||
|seealso= [[ | |seealso= [[Stringtable.xml]] [[localize]] [[isLocalized]] [[diag_localized]] [[BIS_fnc_localize]] [[getText]] [[getNumber]] [[getArray]] | ||
}} | }} |
Revision as of 09:55, 13 March 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:
- ConfigLocalization
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:
- 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