2

How can I change the language in the BASH, s.t. the error messages will be shown in English? This would allow me to post the error messages directly, without translating them. Using export LANG=en_GB.UTF-8and vi ~/.bashrc didn't work.

2
  • 2
    What is the locale output before and after setting the locale. And this is a question better suited for serverfault.com Commented Aug 13, 2018 at 9:21
  • try en_EN.UTF-8 Commented Aug 13, 2018 at 9:26

2 Answers 2

6

Set the LANG environment variable:

export LANG=C

en_GB.UTF-8 works, too. But put it in ~/.profile. And restart your login shell.

Or put a file in /etc/profile.d for a system wide configuration.

Sign up to request clarification or add additional context in comments.

Comments

0

Don't forget to restart your BASH everywhere. Meaning, if you use it in your IDE like VSCode, be sure it's also closed there. This worked for me.

1 Comment

This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.