getTextRaw: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Some wiki formatting)
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |Game name=
|game1= arma3
|version1= 2.02


| 2.01 |Game version=
|gr1= Config
____________________________________________________________________________________________


| Gets the translation key from config entry. To obtain the [[localize]]d text, see [[getText]]. |DESCRIPTION=
|gr2= Localization
____________________________________________________________________________________________


| [[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]] - [[Stringtable.xml|stringtable]] key |RETURNVALUE=
|p1= config: [[Config]]
____________________________________________________________________________________________


|x1 = <code>_text = [[getTextRaw]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Thing" [[gtgt|>>]] "displayName");</code>
|r1= [[String]] - raw text value


| [[configFile]], [[config/name]], [[configName]], [[count]], [[getArray]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]], [[getText]] |SEEALSO=
|x1= <sqf>
private _text = getText (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "Get in %1 as Driver"
private _rawText = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "$STR_ACTION_GETIN_DRIVER"
private _localized = localize _text; // "Get in %1 as Driver"
_localized == _text; // true
</sqf>
 
|seealso= [[Stringtable.xml]] [[localize]] [[isLocalized]] [[diag_localized]] [[BIS_fnc_localize]] [[getText]] [[getNumber]] [[getArray]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Command Group: Config|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:18, 18 September 2023

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:
ConfigLocalization

Syntax

Syntax:
getTextRaw config
Parameters:
config: Config
Return Value:
String - raw text value

Examples

Example 1:
private _text = getText (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "Get in %1 as Driver" private _rawText = getTextRaw (configFile >> "CfgVehicles" >> "Thing" >> "displayName"); // "$STR_ACTION_GETIN_DRIVER" private _localized = localize _text; // "Get in %1 as Driver" _localized == _text; // 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