Changes

Jump to navigation Jump to search

locale.name

485 bytes added, 10:29, 25 May 2011
Created page with "locale.'''name''' is a function that is part of the Locale Library. <br> The function returns the name of the current locale.<br> == Syntax == locale.'''name()'''<br..."
locale.'''name'''&nbsp;is a function that is part of the Locale Library.

<br>

The function returns the name of the current locale.<br>

== Syntax ==

locale.'''name()'''<br> returns the name of the current local. It normally returns a two-letter language code, but in some cases it also contains a two-letter country code.

E.g: en, it, nl_be, fr_be

== Example ==

<source lang="lua">len = locale.name() --Puts the current locale name in len</source>

<br>

[[Category:locale]]
68

edits

Navigation menu