Difference between revisions of "getTextRaw"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{uc:{{PAGENAME}}}}" to "")
m (Page filling)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
+
{{RV|type=command
____________________________________________________________________________________________
 
  
| arma3dev |Game name=
+
|game1= arma3
  
| 2.01 |Game version=
+
|version1= 2.02
____________________________________________________________________________________________
 
  
| 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]]. |DESCRIPTION=
+
|gr1= Config
____________________________________________________________________________________________
 
  
| [[getTextRaw]] config |SYNTAX=
+
|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]].
  
|p1 = config: [[Config]]
+
|s1= [[getTextRaw]] config
  
| [[String]] - raw text value |RETURNVALUE=
+
|p1= config: [[Config]]
____________________________________________________________________________________________
 
  
|x1 = <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|"$STR_ACTION_GETIN_DRIVER"}}
+
|r1= [[String]] - raw text value
 +
 
 +
|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"}}
 
_localized == [[getText]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|true}}</code>
 
_localized == [[getText]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|true}}</code>
  
| [[configFile]], [[config/name]], [[configName]], [[count]], [[getArray]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]], [[getText]] |SEEALSO=
+
|seealso= [[configFile]], [[config / name]], [[configName]], [[count]], [[getArray]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]], [[getText]], [[localize]], [[isLocalized]], [[diag_localized]]
 
}}
 
}}
 
<h3 style="display:none">Notes</h3>
 
<dl class="command_description">
 
<!-- Note Section BEGIN -->
 
 
<!-- Note Section END -->
 
</dl>
 
 
<h3 style="display:none">Bottom Section</h3>
 

Latest revision as of 13:59, 23 February 2021

Hover & click on the images for descriptions

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.

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
Groups:
Config

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.