3

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?

1 Answer 1

1

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

3
  • @EliasEx: Sounds dangerous. Nothing I would try. May 17, 2014 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, 2014 at 19:12
  • @EliasEx: /etc/default/locale is intended for setting the locale globally. May 18, 2014 at 2:16

You must log in to answer this question.