getTextRaw: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Gets the translation key from config entry. To obtain the [[localize]]d text, see [[getText]]. |DESCRIPTION=
| 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=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1 = <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName");</code>
|x1 = <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName");
// Returns: "$STR_ACTION_GETIN_DRIVER"</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=

Revision as of 10:10, 20 August 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:
Uncategorised

Syntax

Syntax:
getTextRaw config
Parameters:
config: Config
Return Value:
String - stringtable key

Examples

Example 1:
_text = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // Returns: "$STR_ACTION_GETIN_DRIVER"

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