Bug 69673 - gdm does not use /etc/sysconfig/i18n
Summary: gdm does not use /etc/sysconfig/i18n
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gdm
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks: 67218
TreeView+ depends on / blocked
 
Reported: 2002-07-24 12:07 UTC by Harald Hoyer
Modified: 2007-04-18 16:44 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-08-28 22:00:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Harald Hoyer 2002-07-24 12:07:22 UTC
LANG != en_US and greeting and menus are in english...

Comment 1 Havoc Pennington 2002-08-07 23:33:49 UTC
Does this still happen with latest? the po files seem to exist and have
translations in them...

Comment 2 Harald Hoyer 2002-08-08 07:09:07 UTC
gdm-2.4.0.4-1 says:
"Welcome to <hostname>

Please enter your username"

The Options menu says: "Select a language for ...", although the buttons are
translated..
The System menu is also untranslated..

Comment 3 Havoc Pennington 2002-08-14 04:35:26 UTC
Oh, I see - gdm doesn't use the system language, you have to set the locale 
in /etc/X11/gdm/gdm.conf. It's been that way for several releases...

Comment 4 Elliot Lee 2002-08-26 17:51:43 UTC
setting it in gdm.conf does no good either from what I can tell, _and_ it's broken to have a 
separate setting.

Comment 5 Alexander Larsson 2002-08-26 18:21:55 UTC
I had to telinit 3 + telinit 5 after changing the language in /etc/sysconfig/i18n


Comment 6 Havoc Pennington 2002-08-28 16:44:46 UTC
alex are you saying gdm does use /etc/sysconfig/i18n for you?

Comment 7 Alexander Larsson 2002-08-28 18:34:12 UTC
yes. if i restart gdm


Comment 8 Havoc Pennington 2002-08-28 22:00:46 UTC
harald, does /etc/sysconfig/i18n work for you? 

Here is the relevant code:

/* no language set, use the GdmDefaultLocale */
  if (GdmDefaultLocale != NULL &&
      strlen (GdmDefaultLocale) != 0 &&
      g_getenv ("LANG") == NULL &&
      g_getenv ("LC_ALL") == NULL)
    setlocale (LC_ALL, GdmDefaultLocale);
  else
    setlocale (LC_ALL, "");


Comment 9 Havoc Pennington 2002-08-28 23:35:17 UTC
/etc/sysconfig/i18n works for me, and I believe if LANG/LC_ALL were unset it
would fall back to the thing in gdm.conf.

Reopen if someone else can reproduce it not working...


Note You need to log in before you can comment on or make changes to this bug.