4

Is there a way I can change the language of the console? I have seen things such as adding LANG=C in front of the commands but that is a temporary fix.

I can live with the Turkish console but when it comes to man and help commands it drives me nuts. I do not understand the Turkish terms used.

3 Answers3

2

Run the following command to save it in your ~/.bashrc file so that every time you open an interactive non-login terminal your locale will be set accordingly:

echo 'export LANG=C' >> ~/.bashrc

Note that the C locale uses an ASCII character set, if you want Unicode then use a locale that supports it e.g.:

echo 'export LANG=en_US.UTF-8' >> ~/.bashrc

To make changes available from the running session, source the ~/.bashrc file:

source ~/.bashrc
heemayl
  • 93,925
0

Put that into your ~/.bashrc file, where you define the prompt. Example:

PS1='$(LANG=C)serg@ubuntu $ '

0

I have a file in my ~/bin folder to get gnome-terminal in English:

$ cat ~/bin/gnome-terminal
#!/bin/sh
export LANGUAGE=en_US
exec /usr/bin/gnome-terminal $@

(~/bin is the first item in $PATH if it exists)

Please note that since the LANGUAGE variable is set more often than not in Ubuntu, and since gnome-terminal uses gettext, it's LANGUAGE which needs to be changed, not LANG.