language: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma3 |Game name=
|game1= arma3
|version1= 0.50


|0.50|Game version=
|gr1= System


|gr1= System |GROUP1=
|descr= Returns current game language.


| Returns current game language.  |DESCRIPTION=
|s1= [[language]]


| [[language]] |SYNTAX=
|r1= [[String]] - See [[Stringtable.xml#Supported_languages|supported languages]] for possible values


| [[String]] - See [[Stringtable.xml#Supported_languages|supported languages]] for possible values |RETURNVALUE=
|x1= <code>_myLanguage = [[language]]; {{codecomment|// will return "English" if game language is set to English}}</code>


|x1= <code>_myLanguage = [[language]]; {{codecomment|// will return "English" if game language is set to English}}</code>|EXAMPLE1=
|seealso= [[Stringtable.xml]] [[getTextRaw]] [[localize]] [[isLocalized]] [[diag_localized]] [[BIS_fnc_localize]]
 
| [[Stringtable.xml]] |SEEALSO=
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 16:53, 3 May 2021

Hover & click on the images for description

Description

Description:
Returns current game language.
Groups:
System

Syntax

Syntax:
language
Return Value:
String - See supported languages for possible values

Examples

Example 1:
_myLanguage = language; // will return "English" if game language is set to English

Additional Information

See also:
Stringtable.xml getTextRaw localize isLocalized diag_localized BIS_fnc_localize

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