You are not logged in.
I've set my locale settings like that:
[dijuna@assy ~]$ locale -a
C
POSIX
en_GB.utf8
en_US.utf8
pl_PL.utf8
[dijuna@assy ~]$ cat /etc/locale.conf
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en_US:en
LC_COLLATE=C
LC_NUMERIC=pl_PL.UTF-8
LC_MONETARY=pl_PL.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
As I'm in bash, everything's fine but after I startx into KDE, when I use nano or sudo in Konsole, I get messages in polish (but not all of them):
[dijuna@assy ~]$ sudo pacman -Syu
[sudo] hasło użytkownika root:
Niestety, proszę spróbować ponownie.
[sudo] hasło użytkownika root:
:: Synchronising package databases...
core is up to date
...
:: Starting full system upgrade...
there is nothing to do
[dijuna@assy ~]$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=pl_PL.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE=C
LC_MONETARY=pl_PL.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT=pl_PL.UTF-8
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
Why is that? My regional settings in KDE are set as follows:
Preferred languages: British english, American english, polish;
Formats: region - en_GB, numbers - pl_PL, time - en_GB, currency - pl_PL, measurement units - pl_PL, collation and sorting - C.
It's fine under root (after su - in Konsole) even though "locale" returns the same values as for current user.
Last edited by Dijuna (2015-12-15 10:45:17)
Offline
The problem was with this file:
[dijuna@assy ~]$ cat .config/plasma-localerc
[Formats]
LANG=en_GB.UTF-8
LC_COLLATE=C
LC_MEASUREMENT=pl_PL.UTF-8
LC_MONETARY=pl_PL.UTF-8
LC_NUMERIC=pl_PL.UTF-8
LC_TIME=en_GB.UTF-8
useDetailed=true
[Translations]
LANGUAGE=en_GB:en_US:pl
There is no "en" in KDE regional settings so it was falling back to "pl". Needed to remove polish from "preferred languages" as there are no translation files for "just en".
Offline