You are not logged in.

#1 2014-02-02 20:18:38

Ploppz
Member
Registered: 2013-09-14
Posts: 311

[Solved] Can't make locale right.

This is my /etc/locale.conf:

LANG="nb_NO.UTF-8"
L_MESSAGES="en_GB.UTF-8"

This is the output when I write locale

LANG=nb_NO.UTF-8
LC_CTYPE="nb_NO.UTF-8"
LC_NUMERIC="nb_NO.UTF-8"
LC_TIME="nb_NO.UTF-8"
LC_COLLATE="nb_NO.UTF-8"
LC_MONETARY="nb_NO.UTF-8"
LC_MESSAGES="nb_NO.UTF-8"
LC_PAPER="nb_NO.UTF-8"
LC_NAME="nb_NO.UTF-8"
LC_ADDRESS="nb_NO.UTF-8"
LC_TELEPHONE="nb_NO.UTF-8"
LC_MEASUREMENT="nb_NO.UTF-8"
LC_IDENTIFICATION="nb_NO.UTF-8"
LC_ALL=

I don't want norwegian messages... I have locale-gen'd as root. Why isn't L_MESSAGES set to english?

I also tried commenting away nb_NO.UTF-8 in /etc/locale.gen, and setting everything to en_GB.UTF-8 in /etc/locale.conf, but then I get these errors:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

and everything is set to nb_NO.UTF-8 anyway.... what is happening

Last edited by Ploppz (2014-02-02 21:18:32)

Offline

#2 2014-02-02 20:24:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Can't make locale right.

Have you tried setting

LC_MESSAGES="en_GB.UTF-8"

You have a typo - missed the 'C' in 'LC_MESSAGES'.

Offline

#3 2014-02-02 20:26:32

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] Can't make locale right.

From those errors it appears you didn't generate the English locales. Can you post the output of `locale -a` (or just check whether en_GB.UTF-8 shows up and if not, what's uncommented in /etc/locale.gen)?

And please just include such output in your post (in code tags).

Offline

#4 2014-02-02 20:27:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Can't make locale right.

Offline

#5 2014-02-02 20:43:54

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Can't make locale right.

Done, Raynman smile

With only en_GB uncommented, and everything set to en_GB, locale -a says

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_GB.utf8

With both en_GB and nb_NO uncommented, and /etc/locale.conf set as in the first post, locale -a says

C
en_GB.utf8
nb_NO.utf8
POSIX

localectl says

   System Locale: LANG=nb_NO.UTF-8
                  LC_MESSAGES=en_GB.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

though. That looks fine, but the messages still are in norwegian :s

Edit: For example, when trying to run ncmpcpp without mpd running, it says "Couldn't connect to MPD (host = localhost, port = 6600): Oppkobling nektes" Whereas the two last words are norwegian and mean "Connection refused". I guess this goes under LC_MESSAGES.

Last edited by Ploppz (2014-02-02 20:48:04)

Offline

#6 2014-02-02 20:45:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Can't make locale right.

What's the output of 'locale'?

Offline

#7 2014-02-02 20:52:45

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Can't make locale right.

The same as in the first post.

Offline

#8 2014-02-02 21:01:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Can't make locale right.

Did you reboot after changing the typo in /etc/locale.conf?

Offline

#9 2014-02-02 21:18:12

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Can't make locale right.

Ah that did it. Thanks everyone!

Offline

Board footer

Powered by FluxBB