Difference between revisions of "Application:getLocale"

From GiderosMobile
(prefixindex)
m (Text replacement - "<source" to "<syntaxhighlight")
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
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.
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = application:getLocale()
 
(string) = application:getLocale()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
 
'''Returns''' (string) The device locale
 
'''Returns''' (string) The device locale
  
----
+
{{Application}}
{{Special:PrefixIndex/Application}}
 
<br/>
 
 
 
{{Special:PrefixIndex/Event.APPLICATION}}
 

Latest revision as of 17:53, 12 July 2023

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