Difference between revisions of "Application:getLocale"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the device locale. The locale string is a combination of ISO 639-1 and ISO 3166-1. For...")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
 
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[Application|Application]]<br/>
 +
 
=== Description ===
 
=== Description ===
<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.
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 />
+
 
<br />
 
 
<source lang="lua">
 
<source lang="lua">
(string), = Application:getLocale()
+
(string) = application:getLocale()
 
</source>
 
</source>
'''Returns''' (string) The device locale<br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (string) The device locale
 +
 
 +
{{Application}}

Revision as of 23:53, 2 December 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