Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 69673

Summary: gdm does not use /etc/sysconfig/i18n
Product: [Retired] Red Hat Raw Hide Reporter: Harald Hoyer <harald>
Component: gdmAssignee: Havoc Pennington <hp>
Status: CLOSED WORKSFORME QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: alexl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-28 22:00:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 67218    

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...