Trouble setting the desired locale

Latest response

Good Morning,

I have some trouble setting the locale the way I desire.

On my RHEL 7 server with GUI I would like to set the /etc/locale.conf like it is described in the Chapter 1, Sytem Administrators Guide. I would like to use the GUI in German language while getting terminal error output in POSIX format.

After setting LC_MESSAGES=C in /etc/locale.conf and rebooting the system the GUI is in English language, too. Where is my mistake?

Here is my current config:

localectl status
   System Locale: LANG=de_DE.UTF-8
                  LC_MESSAGES=C
       VC Keymap: de-nodeadkeys
      X11 Layout: de
     X11 Variant: nodeadkeys

cat /etc/locale.conf
LANG="de_DE.UTF-8"
LC_MESSAGES=C

Regards,
Jörg

Responses

Hi Jörg,

Maybe this example from my current setup can help, I selected EN-US as system language and for the formats DE-DE.

$ localectl status
   System Locale: LANG=en_US.UTF-8
                  LC_NUMERIC=de_DE.UTF-8
                  LC_TIME=de_DE.UTF-8
                  LC_MONETARY=de_DE.UTF-8
                  LC_PAPER=de_DE.UTF-8
                  LC_MEASUREMENT=de_DE.UTF-8
       VC Keymap: de
      X11 Layout: de  

$ cat /etc/locale.conf
LANG=en_US.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8

Execute sudo nano /etc/locale.conf and manually modify the settings that they fit your needs, logout and back in.

Regards,
Christian

Hi Christian,

I'm running the configuration from your example now. It's working but I'd still like to know why the example from the documentation shows the behaviour described in my first post.

Maybe installing a machine with GUI wasn't the best idea in the first place. ;-)

Cheers,
Jörg

Hi Jörg,

Well, there are so many possibilities and reasons why some things work differently on different setups. Usually it has something to do with the fact that all users use different configuration and installation approaches and that they are running their systems on different machines ... but I think installing a GUI is not the root cause for such problems ... :)

Regards,
Christian

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.