LuaNET, the lua 5.1 api documentation!

Lua-Api

Operating System

[LUA 5.1] os.setlocale

function os.setlocale ( locale, category )
Sets the current locale of the program.
Code:
locale
is a string specifying a locale;
Code:
category
is an optional string describing which category to change:
Code:
"all"
,
Code:
"collate"
,
Code:
"ctype"
,
Code:
"monetary"
,
Code:
"numeric"
, or
Code:
"time"
;
the default category is
Code:
"all"
.
The function returns the name of the new locale,
or nil if the request cannot be honored.



When called with nil as the first argument,
this function only returns the name of the current locale
for the given category.

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.233 seconds with 21 queries.