Post by Gilberto F da SilvaI'm having trouble getting the location right in Mageia 8. There are
two different locales. If I'm in text mode, the locale shows that I'm
using Brazilian Portuguese. Inside the konsole I get that I'm using the
Esperanto language.
Question: where do I configure the text mode locale and where do I
configure the graphics mode locale?
There are multiple ways locale is specified. At the system level, /etc/locale.conf,
/etc/sysconfig/i18n. Some desktop environments such as kde and gnome override
the system settings.
On my system ...
$ cat /etc/locale.conf
COUNTRY=CA
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en_GB:en
$ cat /etc/sysconfig/i18n
COUNTRY=CA
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en_GB:en
LC_ADDRESS=en_CA.UTF-8
LC_COLLATE=en_CA.UTF-8
LC_CTYPE=en_CA.UTF-8
LC_IDENTIFICATION=en_CA.UTF-8
LC_MEASUREMENT=en_CA.UTF-8
LC_MESSAGES=en_CA.UTF-8
LC_MONETARY=en_CA.UTF-8
LC_NAME=en_CA.UTF-8
LC_NUMERIC=en_CA.UTF-8
LC_PAPER=en_CA.UTF-8
LC_TELEPHONE=en_CA.UTF-8
LC_TIME=en_CA.UTF-8
SYSFONT=lat0-16
$ cat ~/.config/plasma-localerc
[Formats]
LANG=en_CA.UTF-8
LC_COLLATE=en_CA.UTF-8
LC_MEASUREMENT=en_CA.UTF-8
LC_MONETARY=en_CA.UTF-8
LC_NUMERIC=en_CA.UTF-8
useDetailed=true
[Translations]
LANGUAGE=en_GB:en_US
$ cat ~/.config/plasma-locale-settings.sh
# Generated script, do not edit
# Exports language-format specific env vars from startkde.
# This script has been generated from kcmshell5 formats.
# It will automatically be overwritten from there.
export LANG=en_CA.UTF-8
export LC_NUMERIC=en_CA.UTF-8
export LC_MONETARY=en_CA.UTF-8
export LC_MEASUREMENT=en_CA.UTF-8
export LC_COLLATE=en_CA.UTF-8
export LANGUAGE=en_GB:en_US
The first is set during the initial language selection during install. The second
by mcc.
The last two by systemsettings5. Don't edit them manually when logged into plasma
as that user.
The selection when setting them is limited based on the packages installed.
Regards, Dave Hodgins