You are not logged in.

#1 2020-08-26 15:37:08

sightro
Member
Registered: 2020-08-26
Posts: 2

Locale settings doesn't behave as expected.

Hello arch users.

I have just installed arch and face some issues with locale configuration. During installation I set LANG=en_US.UTF-8 and  generate en_US.UTF-8 and ru_RU.UTF-8 locales. Now I want to use English as default language and Russian for regional formats and also as second language. If I set those settings through kde settings, some things(like days of the week, alacritty) use Russian language instead of English one.

Examples:
Command not found in Russian
Days of the week in kde widget

So, then I tried to set all LC_*, LANG and LANGUAGE variables explicitly in locale.conf and change kde regional->formats settings to "No change" option but it still behave the same way.

locale.conf:

LANG=en_US.UTF-8
LANGUAGE=en_US:ru_RU:en
LC_ADDRESS=ru_RU.UTF-8
LC_COLLATE=C
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=ru_RU.UTF-8
LC_PAPER=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8

~/.config/plasma-localerc:

[Formats]
LANG=en_US.UTF-8

[Translations]
LANGUAGE=en_US:ru

Output of locale:

[sightro@suspicious-pc ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE=C
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=ru_RU.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

Output of localectl status:

[sightro@suspicious-pc ~]$ localectl status
   System Locale: LANG=en_US.UTF-8
                  LANGUAGE=en_US:ru_RU:en
                  LC_NUMERIC=ru_RU.UTF-8
                  LC_TIME=ru_RU.UTF-8
                  LC_COLLATE=C
                  LC_MONETARY=ru_RU.UTF-8
                  LC_PAPER=ru_RU.UTF-8
                  LC_ADDRESS=ru_RU.UTF-8
                  LC_TELEPHONE=ru_RU.UTF-8
                  LC_MEASUREMENT=ru_RU.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

Do I do something wrong?

Offline

#2 2020-08-26 15:47:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,736

Online

#3 2020-08-26 16:18:29

sightro
Member
Registered: 2020-08-26
Posts: 2

Re: Locale settings doesn't behave as expected.

Yeah, I read it but... What should I do? LANGUAGE variable is defined in locale.conf. Then kde override it but I still get fully Russian dates.

Offline

#4 2020-08-26 16:33:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,736

Re: Locale settings doesn't behave as expected.

What does the assigned value imply?
Hint: many strings will have no en_US.utf-8 translation because they're American English anyway.

Online

Board footer

Powered by FluxBB