Application:getLocale: Difference between revisions

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