If I enter a command, the output is translated in the language I am using on the system. But if I use sudo to run a command with root privileges, the output is always in English. How can I change this?


You can't.

But there is a workaround:

  • If you haven't already done so, go to System Settings -> Language Support and click the "Apply System-Wide" button.
  • Get root privileges using sudo su

Reference: https://help.ubuntu.com/community/EnvironmentVariables#sudo_caveat

| improve this answer | |
  • @EliasEx: Sounds dangerous. Nothing I would try. – Gunnar Hjalmarsson May 17 '14 at 19:04
  • How can I change the global local variable in the console? I need this for a server with out an UI. – user282328 May 17 '14 at 19:12
  • @EliasEx: /etc/default/locale is intended for setting the locale globally. – Gunnar Hjalmarsson May 18 '14 at 2:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy