Weekday strings are printed in the language of LC_TIME
I installed Linux Mint 19.3 today and saw that the calendar widget assumed Sunday as the start of the week. I'm from Sweden and thus want Monday to be the start of the week so in system preferences under "Languages" and changed the "Time format" to "Swedish, Sweden UTF-8". The "Language" was set to "English, United States UTF-8" and the "Region" was set to "Swedish, Sweden UTF-8". I saved and restarted the computer (because the calendar didn't update right away).
After the restart I noticed that some of the strings had changed to Swedish, which isn't what I wanted.
If I open Calendar (version 3.28.2), on the first page the month_label
and label_{0,6}
is in Swedish.
I looked into the code and saw that the text for label_{0,6}
is created by nl_langinfo(ABDAY_{1,7})
, so I wrote a simple program to test the function myself and it correctly spits out Sun
for ABDAY_1
.
This is the output of locale
:
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=sv_SE.UTF-8
LC_ALL=