GNOME Bugzilla – Bug 89970
Language env var
Last modified: 2002-08-07 21:03:57 UTC
When I choose a language, gnome2 doesn't use this choice. I started digging, and noticed gdm is setting the environment variabele LANG correctly. But unfortunately env-var LANGUAGE is also set in my case. And for gettext() and related function LANGUAGE takes precedence over LANG. At least according to l18nux.org (http://www.li18nux.org/docs/html/LI18NUX-2000-amd4.htm) I haven't read the whole document, but wouldn't it be better to set LANGUAGE instead of LANG. Since LANGUAGE is explicitly used for gettext()?
gdm2 only sets GDM_LANG and LANG. it must be some startup script that messes things up for you. What distribution is this Also I have noticed that gnome-session doesn't set LANGUAGE nor LC_ALL as it used to when it sees GDM_LANG. I wonder why.
My distro is Mandrake 8.2, I tried to figure out what is setting my LANGUAGE var, but I have no clue what is setting it yet.
Jacob, any thoughts on the gnome-session question?
no - probably something weird with mandrake.
Ah I didn't mention I compiled this with Garnome. Well actually I did update to the latest versions. gdm-2.4.0.5 gnome-session-2.0.4
Just "fixed" this in CVS. Basically GDM_LANG is now set ONLY if you select some other then system default language. If so the Gnome and Xsession sessions now check that the language is really set correctly in the script. So if something in /etc/profile messes things up, we unmess them up.