Hi,
I'm running my CentOS 7 desktop in french. LANG is set to fr_FR.UTF-8.
In GNOME 3, the menu entries are listed in alphabetical order. Unfortunately, entries beginning with an accented character (like "Éditeur de texte") appear at the bottom of the list.
I know that in order to correct this, I have to set the LC_COLLATE variable to fr_FR.UTF-8. What would be a sensible place to do this system-wide under CentOS 7?
Cheers,
Niki
Hi,
to my knowledge
echo "LC_COLLATE=fr_FR.UTF-8" >> /etc/locale.conf
is the right way to do that.
Regards, Michael
Am 15.02.2015 um 08:43 schrieb Niki Kovacs:
Hi,
I'm running my CentOS 7 desktop in french. LANG is set to fr_FR.UTF-8.
In GNOME 3, the menu entries are listed in alphabetical order. Unfortunately, entries beginning with an accented character (like "Éditeur de texte") appear at the bottom of the list.
I know that in order to correct this, I have to set the LC_COLLATE variable to fr_FR.UTF-8. What would be a sensible place to do this system-wide under CentOS 7?
Cheers,
Niki
Le 15/02/2015 16:38, Michael Volz a écrit :
Hi,
to my knowledge
echo "LC_COLLATE=fr_FR.UTF-8" >> /etc/locale.conf
is the right way to do that.
Thanks! If I remember correctly, CentOS 5.x and 6.x had an /etc/sysconfig/i18n file for that.
Cheers,
Niki
Le 15/02/2015 16:38, Michael Volz a écrit :
Hi,
to my knowledge
echo "LC_COLLATE=fr_FR.UTF-8" >> /etc/locale.conf
is the right way to do that.
Unfortunately that didn't work. Putting LC_COLLATE in /etc/locale.conf does nothing.
Now what?
Le 16/02/2015 07:18, Niki Kovacs a écrit :
Le 15/02/2015 16:38, Michael Volz a écrit :
Hi,
to my knowledge
echo "LC_COLLATE=fr_FR.UTF-8" >> /etc/locale.conf
is the right way to do that.
Unfortunately that didn't work. Putting LC_COLLATE in /etc/locale.conf does nothing.
Now what?
Hi,
I think in Centos 7, it's now localectl (systemd) is the way to do that.
Here is a link : http://www.freedesktop.org/software/systemd/man/localectl.html
regards,
MAACHE Mehdi
Hi together,
Centos 7 uses localectl to manage the locales. But they are stored in /etc/locale.conf. You can either set them manually in that file or use
localectl set-locale LANG=fr_FR.UTF-8 LC_COLLATE=fr_FR
to do that. Using localectl immediatly applies the change without the need to restart the system. It seems that fr_FR.UTF-8 is not a valid locale for LC_COLLATE, as indeed it is not accepted by localectl, fr_FR is however.
Regards Michael
Am 16.02.2015 um 11:22 schrieb Mehdi Maache:
Le 16/02/2015 07:18, Niki Kovacs a écrit :
Le 15/02/2015 16:38, Michael Volz a écrit :
Hi,
to my knowledge
echo "LC_COLLATE=fr_FR.UTF-8" >> /etc/locale.conf
is the right way to do that.
Unfortunately that didn't work. Putting LC_COLLATE in /etc/locale.conf does nothing.
Now what?
Hi,
I think in Centos 7, it's now localectl (systemd) is the way to do that.
Here is a link : http://www.freedesktop.org/software/systemd/man/localectl.html
regards,
MAACHE Mehdi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos