I have the system default set to en_US.UTF-8
. But (among other nonsensical things) this makes Sunday (a weekend day) the first day of the week in calendars.
I want to use the LC_TIME
variable from en_DK.UTF-8
while keeping the en_US.UTF-8
variables for everything else.
I have generated both en_US.UTF-8
and en_DK.UTF-8
and I used to be able to simply edit /etc/default/locale
by adding the line LC_TIME="en_DK.UTF-8"
.
But this is no longer working and I have no idea why. So how can I get this working again?
Before people start telling me to hack on the en_US.UTF-8
text file (at /usr/share/i18n/locales
), this doesn't work either because updates periodically reset this. I want to know what the "proper" way of configuring for this is.
Here is what I would do:
check which locales are enabled:
You should at least get (Or something similar):
Enable it if it's not and disable unnecessary locales by commenting those lines.
generate locales:
set default locales:
check All important files like:
.profile
,.bashrc
and other startup files to make sure nothing is overwriting our configurations.it should work.
Open
~/.profile
for editing and add this line:On Ubuntu GNOME you may also need to run this command: