Changes

Jump to navigation Jump to search

locale.name

23 bytes removed, 07:28, 6 August 2011
no edit summary
Line 1: Line 1: −
locale.'''name''' is a function that is part of the Locale Library.  
+
locale.'''name'''&nbsp;is a function that is part of the Locale Library. <br />
   −
<br>
+
This returns the name of the current locale. It normally returns a two-letter language code, but in some cases it also contains a two-letter country code (ISO-639).
   −
The function returns the name of the current locale.<br>
+
For instance: en, fr, it, de, es, nl, nl_BE, en_GB
    
== Syntax  ==
 
== 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 (ISO-639).
+
locale.'''name'''()<br>
   −
For instance: en, fr, it, de, es, nl, nl_BE, en_GB
+
(No arguments)
    
== Example ==
 
== Example ==
   −
<source lang="lua">lang = locale.name() --Puts the current locale name in lang</source>
+
<source lang="lua">currentLang = locale.name() --Puts the current locale name in currentLang</source>
    
<br>
 
<br>
    
[[Category:locale]]
 
[[Category:locale]]

Navigation menu