Difference between revisions of "Application:getLocale"

From GiderosMobile
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<languages />
 
<languages />
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6
 +
<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]
 +
<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate><br />
+
<translate>
Returns the device locale. The locale string is a combination of ISO 639-1 and ISO 3166-1. For example, en_US, ja_JP.<br />
+
Returns the device locale. The locale string is a combination of ISO 639-1 and ISO 3166-1. For example, en_US, ja_JP.
<br /></translate>
+
</translate>
 +
<br/>
 
<source lang="lua">
 
<source lang="lua">
(string) = Application:getLocale()
+
(string) = application:getLocale()
 
</source>
 
</source>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
'''<translate>Returns</translate>''' (string) <translate>The device locale</translate><br/>
+
'''<translate>Returns</translate>''' (string) <translate>The device locale</translate>
 +
<br/>
 +
<br/>

Revision as of 23:38, 12 June 2019


Available since: Gideros 2011.6
Class: Application

Description

Returns the device locale. The locale string is a combination of ISO 639-1 and ISO 3166-1. For example, en_US, ja_JP.

(string) = application:getLocale()

Return values

Returns (string) The device locale