After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 89970 - Language env var
Language env var
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other other
: Normal major
: ---
Assigned To: GDM maintainers
Trevor Curtis
Depends on:
Blocks:
 
 
Reported: 2002-08-05 21:55 UTC by Aschwin van der Woude
Modified: 2002-08-07 21:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aschwin van der Woude 2002-08-05 21:55:43 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()?
Comment 1 George Lebl 2002-08-06 19:45:35 UTC
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.
Comment 2 Aschwin van der Woude 2002-08-06 19:57:32 UTC
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.

Comment 3 Luis Villa 2002-08-07 15:04:54 UTC
Jacob, any thoughts on the gnome-session question?
Comment 4 jacob berkman 2002-08-07 16:52:19 UTC
no - probably something weird with mandrake.
Comment 5 Aschwin van der Woude 2002-08-07 20:47:25 UTC
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
Comment 6 George Lebl 2002-08-07 21:03:57 UTC
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.