Score:1

English language GUI and german i Terminal

in flag

I have problem with my Terminal. GUI is in English, and terminal in German.. I need everywhere English. What should I do?

enter image description here

Kubuntu 20.LTS I have only a german keyboard.

----------EDIT----------------------

piotr@Dell:~$ ifconfig

Command 'ifconfig' not found, but can be installed with:

sudo apt install net-tools

piotr@Dell:~$ which localectl
/usr/bin/localectl

Not all message are in German O_o

Nate T avatar
it flag
You should update your post and add a question. Right now you are just telling us some facts about your terminal. We can't give answers without a question.
Peter avatar
in flag
Ok, the question is here.
Nate T avatar
it flag
type into terminal `which localectl`. What does it output ? It should hopefully be a path
Peter avatar
in flag
EDIT is here :)
Nate T avatar
it flag
`locale -a` will tell you all of the language files installed on your system. Try it and see if you have `en_US.utf8`? If so, I know how to set it.
Nate T avatar
it flag
I will spend some time looking through the documentation myself as well. If I find anything else that I think you will be interested in, I will update my answer to show it. You might also want to quickly make a bash script that iterates through the variables in the list below in a for loop and runs echo on each, and redirect the output to the file. If I have time I can write it out, but I am at work, so I am not sure how busy my day is going to be.
Score:1
it flag

Try this. If it works it will not be permanent.. yet. Better to test to make sure that it works before persisting any variables. The command is set $LANG=en_US.utf8

From Launchpad I found a listing of locale related environment variables and what functionalities they configure on your system. The link is tonot only the list but alsu useful information regarding locale configuration.

LANG
    Provides default value for LC_* variables that have not been explicitly set. 
LC_ADDRESS
    How addresses are formatted (country first or last, where zip code goes etc.). 
LC_ALL
    Overrides individual LC_* settings: if LC_ALL is set, none of the below have any effect. 
LC_COLLATE
    How strings (file names...) are alphabetically sorted. Using the "C" or "POSIX" locale here results in a strcmp()-like sort order, which may be preferable to language-specific locales. 
LC_CTYPE
    How characters are classified as letters, numbers etc. This determines things like how characters are converted between upper and lower case. 
LC_IDENTIFICATION
    Metadata about the locale information. 
LC_MEASUREMENT
    What units of measurement are used (feet, meters, pounds, kilos etc.). 
LC_MESSAGES
    What language should be used for system messages. 
LC_MONETARY
    What currency you use, its name, and its symbol. 
LC_NAME
    How names are represented (surname first or last, etc.). 
LC_NUMERIC
    How you format your numbers. For example, in many countries a period (.) is used as a decimal separator, while others use a comma (,). 
LC_PAPER
    Paper sizes: 11 x 17 inches, A4, etc. 
LC_RESPONSE
    Determines how responses (such as Yes and No) appear in the local language 
LC_TELEPHONE
    What your telephone numbers look like. 
LC_TIME
    How your time and date are formatted. Use for example "en_DK.UTF-8" to get a 24-hour-clock in some programs. 

The best way to set thes is with localectl. It is a front end interface to the system locale daemon system-localed. Both the daemon and the tool have man-pages. when I was searching for the documentation, I typed man locale and pushed TAB for bash completion. It showed 6 or 7 options for different locale related tools and resources. Be sure to check those out as well. I am sure you will no doubt find them useful.

Anyway, as I said in the comment, you can find the languages that are currently on your device by typing locale -a. Once you know the name of the one that is supplying the english text (probably en_US.utf8), you can use it to build the command you need.

Before you change anything, be sure to document your old settings in case you want to set them back later. You can do this with this command:

localectl status >> old.settings
echo;echo;echo "           ~~ installed Locales ~~";echo;echo;  
localectl list-locales >> old.settings
# The last line does the same as "locale -a" but may have more info about your settings

Additionally remember to read the other man-pages and see if you can find any other list type commands. If you do be sure to add them to the old.settings file that we made. Any time you start changing configurations like this, it is necessary to record your start point. If you have a backup system, take a backup as well.

That command should be in the form of:

localectl set-locale [name-of-new-locale-file]

if en_US.utf8 showed up in the locales list, then use that.

This will change the $LANG variable for your system. That will fixthe terminal, but break a few other things. For example, the time may be off. The list that I posted above provides the variables to fix any issues. Just find the key in the list that controls the issue you need to reset, and reset it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.