getTextRaw: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "|Game name=" to "|Game name= |gr1= Config |GROUP1= ")
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:


| arma3dev |Game name=
| arma3dev |Game name=
|gr1= Config |GROUP1=


| 2.01 |Game version=
| 2.01 |Game version=
Line 17: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1 = <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); // "$STR_ACTION_GETIN_DRIVER"
|x1 = <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName"); {{cc|"$STR_ACTION_GETIN_DRIVER"}}
_key = _text [[select]] [1]; // "STR_ACTION_GETIN_DRIVER"
_key = _text [[select]] [1]; {{cc|"STR_ACTION_GETIN_DRIVER"}}
_localized = [[localize]] _key; // "Get in %1 as Driver"</code>
_localized = [[localize]] _key; {{cc|"Get in %1 as Driver"}}
_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=
| [[configFile]], [[config/name]], [[configName]], [[count]], [[getArray]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]], [[getText]] |SEEALSO=
Line 32: Line 37:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Command Group: Config|{{uc:{{PAGENAME}}}}]]

Revision as of 12:31, 18 September 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.01|2.01]]
Hover & click on the images for description

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/nameconfigNamecountgetArraygetNumberinheritsFromisArrayisClassisNumberisTextselectgetText

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

[[Category:Introduced with arma3dev version 2.01]][[ Category: arma3dev: New Scripting Commands | GETTEXTRAW]][[ Category: arma3dev: Scripting Commands | GETTEXTRAW]]

Notes

Bottom Section