Difference between revisions of "Application:getLocale"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Application|Application]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><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 /></translate>
+
<syntaxhighlight lang="lua">
<source lang="lua">
+
(string) = application:getLocale()
(string) = Application:getLocale()
+
</syntaxhighlight>
</source>
+
 
=== <translate>Return values</translate> ===
+
=== Return values ===
'''<translate>Returns</translate>''' (string) <translate>The device locale</translate><br/>
+
'''Returns''' (string) The device locale
 +
 
 +
{{Application}}

Latest revision as of 16: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