Locale is not taken into account by LUA standard functions
Gerokusu opened this issue ยท 4 comments
Problem
When using EventReminders, the formatted date are printed in english no matter what locale you are using.
I am using French, on the screenshot above it should be set as "Novembre" (reversed E / R). After investigating the code, it looks like the standard LUA functions do not understand the current locale, as according to the standard documentation they should have this responsibility.
I checked with print(GetLocale())
just before AlertFrameMixin.lua:26
, the result is frFR for me, which is correct.
Proposition
A quick win would be to get the date month index, use an array of months in the translation files, and hard print this value directly into the string, ignoring the %B format. It is quite dirty though and ignores a normally standard way of operating.
I did not test it on Classic, only on Dragonflight, but I assume it should have the same behaviour.
@Gerokusu just wondering, is your pc in French or English?