You are not logged in.

#1 2020-12-03 15:23:34

coveirdo
Member
Registered: 2020-11-24
Posts: 6

[SOLVED] Mixed language messages in Konsole

Hi, I can't understand how this happened, but in my terminal I get some messages in greek and others in english.

So, for example, if I type a non-existent command (either in root or non-root user), I get:

> blah
bash: blah: εντολή δεν βρέθηκε

But in pacman, I get messages in english. For example, in non-root, I have:

> pacman -S whatever
error: you cannot perform this operation unless you are root.

Here is my /etc/locale.conf:

LANG=en_US.UTF-8
LC_COLLATE=en_US.UTF-8

Here is my ~/.config/plasma-localerc

[Formats]
LANG=en_US.UTF-8
LC_COLLATE=en_BE.UTF-8
LC_MEASUREMENT=en_BE.UTF-8
LC_MONETARY=en_BE.UTF-8
LC_NUMERIC=en_BE.UTF-8
LC_TIME=en_BE.UTF-8
useDetailed=true

[Translations]
LANGUAGE=en_US:el

In /etc/locale.gen I have uncommented the following lines:

el_GR.UTF-8 UTF-8
el_GR ISO-8859-7
el_GR@euro ISO-8859-7
en_US.UTF-8 UTF-8
nl_BE.UTF-8 UTF-8
nl_BE@euro ISO-8859-7

(There are no en_BE entries in this file to uncomment...)

How can I change settings so that everything is in english regarding the terminal? I still want to be able to write in greek in other applications.

Last edited by coveirdo (2020-12-06 09:29:54)

Offline

#2 2020-12-03 15:33:56

coveirdo
Member
Registered: 2020-11-24
Posts: 6

Re: [SOLVED] Mixed language messages in Konsole

Not sure whether it has to do with my LANGUAGE variable, because if I do:

> LANGUAGE=en_US:de blah
bash: blah: εντολή δεν βρέθηκε

I still get the message in greek...

Offline

#3 2020-12-05 13:17:11

coveirdo
Member
Registered: 2020-11-24
Posts: 6

Re: [SOLVED] Mixed language messages in Konsole

Any help, please?
If the silence has to do with a previous post of mine, where I said I have Antergos, I'd like to let you know that I have entirely converted my system to Arch.

Last edited by coveirdo (2020-12-05 13:18:30)

Offline

#4 2020-12-05 17:13:15

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

Re: [SOLVED] Mixed language messages in Konsole

Please post the outputs of "locale", "localectl" and "locale -a"

LANGUAGE=en_US:el

defines a fallback solution and is some sort of trap - since C is more or less en_US, many strings will not have translations for "en_US" so you're using "el" which is greek.
=> Why is that there?

"en_US:de" will not resort to "de" because you probably don't even have that locale.

Offline

#5 2020-12-06 08:36:41

coveirdo
Member
Registered: 2020-11-24
Posts: 6

Re: [SOLVED] Mixed language messages in Konsole

Here are the outputs of the requested commands.

> locale
locale: Cannot set LC_ALL to default locale: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_BE.UTF-8
LC_TIME=en_BE.UTF-8
LC_COLLATE=en_BE.UTF-8
LC_MONETARY=en_BE.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_BE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
> localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us,gr
       X11 Model: latitude
     X11 Variant: euro,simple
     X11 Options: grp:lalt_lshift_toggle
> locale -a
locale: Cannot set LC_COLLATE to default locale: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος
C
POSIX
el_GR
el_GR.iso88597
el_GR.iso88597@euro
el_GR.utf8
el_GR@euro
en_US.utf8
greek
nl_BE.iso885915@euro
nl_BE.utf8
nl_BE@euro

The message "Δεν υπάρχει τέτοιο αρχείο ή κατάλογος" means "No such file or directory".

seth wrote:

=> Why is that there?

I honestly don't know. Is there a non-patchy way to fix this?

Last edited by coveirdo (2020-12-06 08:38:23)

Offline

#6 2020-12-06 08:44:28

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

Re: [SOLVED] Mixed language messages in Konsole

"en_BE.UTF-8"?
You're apparently also trying to set LC_ALL, likely in some shell rc?

Is there a non-patchy way to fix this?

Since it's in the plasma-localerc, likely the plasma locale config dialog in systemsettings?

Offline

#7 2020-12-06 09:29:28

coveirdo
Member
Registered: 2020-11-24
Posts: 6

Re: [SOLVED] Mixed language messages in Konsole

Thank you seth! Indeed, I had wrong settings in the System Settings dialog. Sorry to bother with something that simple.
Marking the thread as solved.

Offline

Board footer

Powered by FluxBB