Locale
locales
locale -a
list all available installed locales
command locale list the current configuration
LANG=en_DK.UTF-8
LANGUAGE=en_DK
LC_CTYPE="en_DK.UTF-8"
LC_NUMERIC=nl_BE.UTF-8
LC_TIME=nl_BE.UTF-8
LC_COLLATE="en_DK.UTF-8"
LC_MONETARY=nl_BE.UTF-8
LC_MESSAGES="en_DK.UTF-8"
LC_PAPER=nl_BE.UTF-8
LC_NAME=nl_BE.UTF-8
LC_ADDRESS=nl_BE.UTF-8
LC_TELEPHONE=nl_BE.UTF-8
LC_MEASUREMENT=nl_BE.UTF-8
LC_IDENTIFICATION=nl_BE.UTF-8
LC_ALL=
do not change LC_ALL= this setting is for debugging purposes. if set to to a locale , this ovverides any and all other locale settings
or localectl status
System Locale: LANG=en_DK.UTF-8
LANGUAGE=en_DK:en
LC_NUMERIC=nl_BE.UTF-8
LC_TIME=nl_BE.UTF-8
LC_MONETARY=nl_BE.UTF-8
LC_PAPER=nl_BE.UTF-8
LC_NAME=nl_BE.UTF-8
LC_ADDRESS=nl_BE.UTF-8
LC_TELEPHONE=nl_BE.UTF-8
LC_MEASUREMENT=nl_BE.UTF-8
LC_IDENTIFICATION=nl_BE.UTF-8
VC Keymap: n/a
X11 Layout: be
X11 Model: pc105
X11 Variant: iso-alternate
diepere details over een ingestelde optie
locale -k LC_TIME
locations
files that contains the locale settings :
system-wide locale settings :
/etc/default/locale
on some distros ? : /etc/locale.conf ?
user-scope settings
system-wide locale can be overridden in each user session by creating or editing $XDG_CONFIG_HOME/locale.conf
(usually ~/.config/locale.conf) echo $XDG_CONFIG_HOME
The precedence of these locale.conf files is defined in /etc/profile.d/locale.sh.
? you do not need to have a system-wide config file , if you have a user one ? (check)
(if you are the only user bijvb , then root uses the default / US ? )
quid ? /usr/share/X11/locale/ : ? dit zijn de libraries om de locales mee
other settings that may override / interfere :
It is possible that the environment variables are redefined in other files than locale.conf,
for example ~/.pam_environment.
If you are using a desktop environment, such as GNOME, its language settings may be overriding the settings in locale.conf.
verdere info
https://wiki.archlinux.org/title/Locale
https://www.tecmint.com/set-system-locales-in-linux/