Difference between revisions of "locale.name"
Jump to navigation
Jump to search
Jimbauwens (talk | contribs) (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...") |
(→Syntax) |
||
Line 7: | Line 7: | ||
== 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. | + | 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). |
− | + | For instance: en, fr, it, nl_be, fr_be | |
== Example == | == Example == |
Revision as of 11:43, 25 May 2011
locale.name is a function that is part of the Locale Library.
The function returns the name of the current locale.
Syntax
locale.name()
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).
For instance: en, fr, it, nl_be, fr_be
Example
len = locale.name() --Puts the current locale name in len