You are not logged in.

#1 2023-03-04 08:34:54

alxndrklbk
Member
Registered: 2023-03-04
Posts: 7

[SOLVED] Not system language at man and --help pages in konsole KDE

Hello everyone, it is my first topic on archlinux.org

I faced problem with set locale for KDE, a specifically a lot of "--help" and "man" pages in konsole showed for me not in system language (English), and a can't fix it by myself over long time.

Here is my locale output

[bem@archlinux ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

also some of localectl:

[bem@archlinux ~]$ localectl
System Locale: LANG=en_US.UTF-8
               LANGUAGE=en_US:en
    VC Keymap: en
   X11 Layout: us
    X11 Model: pc105+inet
  X11 Options: terminate:ctrl_alt_bksp

I think that problem in LANGUAGE variable, because in env output it seems like that:

[bem@archlinux ~]$ env | grep -E "LANG|LOC"
LANGUAGE=en_US:ru:en_US
LANG=en_US.UTF-8

But i am dont know why LANGUAGE variable have en_US:ru:en_US, because my locale.conf  and plasma-localerc is:

[bem@archlinux ~]$ cat /home/bem/.config/plasma-localerc
[Formats]
LANG=en_US.UTF-8
LC_TIME=ru_RU.UTF-8

[Translations]
LANGUAGE=en_US
[bem@archlinux ~]$ cat /etc/locale.conf 
LANG=en_US.UTF-8
LANGUAGE=en_US:en

Сan someone explain me what i am doing wrong and why man and help pages not in English?

Last edited by alxndrklbk (2023-03-07 15:19:04)

Offline

#2 2023-03-04 09:27:04

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

Re: [SOLVED] Not system language at man and --help pages in konsole KDE

Did you alter plasma-localerc without a re-login?

What's the output of

locale -a

man interprets $LC_MESSAGES & $LANG, $LANGUAGE is ignored for me.

LANG= LC_MESSAGES= LANGUAGE=en man man
LANG= LC_MESSAGES= LANGUAGE= man man
LANG= LC_MESSAGES= LANGUAGE=ru man man

should™ all be English.

Likewise

LC_MESSAGES=en_US.UTF-8 man man

Offline

#3 2023-03-04 17:46:02

alxndrklbk
Member
Registered: 2023-03-04
Posts: 7

Re: [SOLVED] Not system language at man and --help pages in konsole KDE

seth wrote:

Did you alter plasma-localerc without a re-login?

What's the output of

locale -a

man interprets $LC_MESSAGES & $LANG, $LANGUAGE is ignored for me.

LANG= LC_MESSAGES= LANGUAGE=en man man
LANG= LC_MESSAGES= LANGUAGE= man man
LANG= LC_MESSAGES= LANGUAGE=ru man man

should™ all be English.

Likewise

LC_MESSAGES=en_US.UTF-8 man man

output is:

[bem@archlinux ~]$ locale -a
C
C.UTF-8
en_US.utf8
POSIX
ru_RU.utf8

each time when plasma-localers changed i do reboot

Offline

#4 2023-03-04 17:57:40

alxndrklbk
Member
Registered: 2023-03-04
Posts: 7

Re: [SOLVED] Not system language at man and --help pages in konsole KDE

Problem was in konsole settings.

I don't know why and how, but it has config parameter "Fallback language" in GUI, and it was active.
So konsole trying translate all messages.

Offline

#5 2023-03-04 19:33:04

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

Re: [SOLVED] Not system language at man and --help pages in konsole KDE

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB