language: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (Text replacement - "Supported_languages" to "Supported_Languages")
 
(20 intermediate revisions by 3 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
____________________________________________________________________________________________


| Returns current game language. |= Description
|descr= Returns current game language.
____________________________________________________________________________________________


| [[language]] |= Syntax
|s1= [[language]]


| [[String]] - See [[Stringtable.xml#Languages|Stringtable.xml languages]] for possible values |= Return value
|r1= [[String]] - see [[Stringtable.xml#Supported_Languages|supported languages]] for possible values


|x1= <code>_myLanguage = [[language]]; {{codecomment|// will return "English" if game language is set to English}}</code>|= Example 1
|x1= <sqf>_myLanguage = language; // will return "English" if game language is set to English</sqf>
____________________________________________________________________________________________


| [[Stringtable.xml]] |= See also
|seealso= [[Stringtable.xml]] [[getTextRaw]] [[localize]] [[isLocalized]] [[diag_localized]] [[BIS_fnc_localize]]
____________________________________________________________________________________________
}}
}}
<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:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 20:28, 10 July 2024

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