It is currently October 9th, 2024, 6:57 pm

Lua locale clarification needed

Discuss the use of Lua in Script measures.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2744
Joined: March 23rd, 2015, 5:26 pm

Lua locale clarification needed

Post by SilverAzide »

Hello,

I've recently noticed that Lua date formatting functions, like os.date("today is %A") appears to return day and month names in English only, not the localized language. I see the docs say os.setlocale is not supported at this time. Does this mean that Lua scripts in Rainmeter are English only? I took the docs to imply that you could not change the locale, but it seems to be that the locale is fixed to be English. Is this correct?
Gadgets Wiki GitHub More Gadgets...