On Sunday 15 May 2011 09:43:39 Alain DIDIERJEAN wrote: > Following the openrc update in gentoo amd64, all locale variables suddenly > vanished. I created a /etc/env.d/02locale file which includes > LANG="fr_FR.UTF-8". lyx loads with english menus. It's only after > exporting LANG from .bashrc that I can launch it from a shell with its > french menus. To achieve the same effect from KDE menu, I have to set the > launch command to LANG="fr_FR.UTF-8" lyx. My preference would be a global > setting (as it used to be), as all users on my machine are french. I have > the same problem with most of the apps. > Any comments ?
Alain, as I said in my previous post the /etc/env.d/02locale settings do not seem to transfer across to user terminals when run in X. I do not run KDE on this machine to see what KDE locale settings are doing ... have you set it to use the French language? Either way, I have noticed that although locale from a user terminal in X shows everything as en_GB.UTF-8: $ locale LANG=en_GB.UTF-8 LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=en_GB.UTF-8 without me having set it so, the same terminal shows different environment variables which correctly coincide with the /etc/env.d/02locale settings: $ echo $LANG en_GB.UTF-8 $ echo $LC_TIME POSIX $ echo $LC_COLLATE C The only odd is the LC_ALL - which I have not set up in my ~/.bashrc or 02locale files! $ echo $LC_ALL en_GB.UTF-8 Perhaps my WM decided to take the LANG variable which happens to be en_GB.UTF-8 and apply it to LC_ALL? The solution for me was to set in ~/.bashrc: export LC_ALL="" Hope this works for your setup too. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.

