Application:getLocale: Difference between revisions

From GiderosMobile
prefixindex
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
'''Class:''' [[Application|Application]]<br/>
'''Class:''' [[Application]]<br/>


=== Description ===
=== 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.
Returns the device locale. The locale string is a combination of ISO 639-1 and ISO 3166-1. For example, en_US, ja_JP.
 
<syntaxhighlight lang="lua">
<source lang="lua">
(string) = application:getLocale()
(string) = application:getLocale()
</source>
</syntaxhighlight>


=== Return values ===
=== Return values ===
'''Returns''' (string) The device locale
'''Returns''' (string) the device locale<br/>
 
----
{{Special:PrefixIndex/Application}}
<br/>


{{Special:PrefixIndex/Event.APPLICATION}}
{{Application}}

Latest revision as of 22:34, 4 June 2025

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