Keep Linux in english while windows in native language

hi,
I want that a language change in windows won't effect Linux language (which should be always English).
I had that feature but A Windows update changed it.
How can I fix it?

Hi Davion,

There should be absolutely no problem in having your Windows installation in one Language and the Linux in an other, changing the language in either installation won't affect the other.

Regards

Gull04

In addition to what gull04 (rightfully) said: there is no "Linux language"! Unlike Windows in Linux everything is controlled by a "language setting", which is basically done in the environment. There are the variables "LANG" and some others all starting with "LC_". Issue the two commands

set | grep '^LC_'
echo $LANG

to see them in a terminal window. You probably see an output like this:

# set | grep '^LC_'
LC_ADDRESS=de_AT.UTF-8
LC_IDENTIFICATION=de_AT.UTF-8
LC_MEASUREMENT=de_AT.UTF-8
LC_MONETARY=de_AT.UTF-8
LC_NAME=de_AT.UTF-8
LC_NUMERIC=de_AT.UTF-8
LC_PAPER=de_AT.UTF-8
LC_TELEPHONE=de_AT.UTF-8
LC_TIME=C

# echo $LANG
C

Because of the i.e. LC_TIME setting date will display the date and time in an international format. Would it be set like the others ("de_AT.UTF-8", the austrian variety of german) its output would change:

# export LC_TIME=C
# date
Thu Nov  8 11:26:25 CET 2018

# export LC_TIME=de_AT.UTF-8
# date                      
Do Nov  8 11:29:22 CET 2018

Notice that the day of week was named "Thu" (Thursday) first and "Do" ("Donnerstag", which is german for Thursday) in the second.

The same goes for all the other aspects of behavior in UNIX: whatever language- or even culturally-related aspect there is it is controlled by these environment variables: LC_COLLATE will tell utilities like sort which sort order to apply. Easy, you might think, but does the german "�" come before or after the "o", hmm? And is uppercase to be before or after lowercase? Actually, that depends - it depends on the setting of LC_COLLATE.

All this is called the "locale" and since this is just a bunch of environment variables you can easily set them to whatever value you want. I prefer "C", which is a "base" locale: english as language, ASCII characters instead of unicode characters, etc.. Try the following on the commandline:

export LANG=C
export LC_ALL=C

and you will get everything in english: man page output, diagnostic messages, etc. Instead of "C" you could also use something like "en_GB.UTF-8" (british english using unicode 8bit-characters) or "de_DE.UTF-8" (Germanies german using unicode 8-bit characters) and so on. You can (in theory - to make a consistent locale is a lot of effort) even create your own locale and use that. To have Linux speak elvish and use "ropes" instead of "miles" as a measurement of length surely might appeal to some. ;-))

So, the bottom line is: just set your locale to what you want and if you want that effect to be lasting you should do that in your sessions startup scripts: ~/.profile and, depending on which shell you use, ~/.kshrc , ~/.bashrc , ~/.cshrc or whatever.

I hope this helps.

bakunin

thanks. I didn't explain my self well.
I'm asking about the keyboard. alt+shift is used to switch the language.
I want that such language switch in Windows won't affect the language in Linux.
I don't want to switch the language back from native to English every time I move from Windows to Linux.
It is definitely doable since it works like that for me till a recent update.

Hi Davion,

Just to clarify then, you are saying that before an upgrade (Was it Windows or Linux?) "Alt+Shift" changed the Language Settings in Windows but not in Linux - But after the upgrade (Whichever one It was) it now changes the Language un both.

I'm assuming that your machine is dual boot - Windows or Linux?

Regards

Gull04

To be honest i don't know where this is the case. The Linux both on my laptop and my desktop both don't behave like this at all. I have not used any Windows for more than 20 years, so i don't know if it is like that in Windows.

You didn't tell us which distribution you use, so here is a link that explains how to configure the keymap in various distributions: Changing The Language & Keyboard Layout On Various Distributions. Notice the warning at the beginning of the document! If you use any desktop system (GNOME, KDE, ....) you should use their respective tools rather than the underlying Linux configuration.

I hope this helps.

bakunin

thanks.
issue was solved:
Start > Settings > Time & Language > Region & language > Additional date, time & regional settings > (under Language) Change input methods > Advanced settings > (under switching input methods) Check on "Let me set a different input method for each app window"

1 Like

Linux is an operating system, we didn't realize you meant two different programs running inside Windows. Thank you for clarifying.