Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 11766

Summary: GDM Locale problem with root
Product: Gentoo Linux Reporter: Edulix <edulix>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Edulix 2002-12-08 07:16:26 UTC
Hello!

I'm a spanish teen-ager. My system is all in Spanish because locales, that I've
already aded in /etc/profile (export LANG=es_ES@euro export LC_ALL=es_ES@euro).
I've configure GDM to start at the initializacion of the linux box. But it's in
english! I 've tried to change it throw the menus, and it doesn't change to any
language. And I think it's a problem only with root user, beacuse with others,
GDM is shown in spanish.

Notes:
I've now installed GDM  v. 2.4.0.12, but I have tried much more than one, this
is the lastest version I've tried.
My ssystem is GNU/Linux Gentoo 1.2.
I use KDE 3.0.4 and gnome 2.0.3

So, the question is, 
Comment 1 Edulix 2002-12-08 07:16:26 UTC
Hello!

I'm a spanish teen-ager. My system is all in Spanish because locales, that I've
already aded in /etc/profile (export LANG=es_ES@euro export LC_ALL=es_ES@euro).
I've configure GDM to start at the initializacion of the linux box. But it's in
english! I 've tried to change it throw the menus, and it doesn't change to any
language. And I think it's a problem only with root user, beacuse with others,
GDM is shown in spanish.

Notes:
I've now installed GDM  v. 2.4.0.12, but I have tried much more than one, this
is the lastest version I've tried.
My ssystem is GNU/Linux Gentoo 1.2.
I use KDE 3.0.4 and gnome 2.0.3

So, the question is, ¿How to change lang of GDM when it's throw root user?

&#8220;This are my right, if you don't like them, Ive got others&#8221;
- &#8220;Spain is different! :'(&#8221;
Comment 2 foser (RETIRED) gentoo-dev 2002-12-08 11:33:33 UTC
environment problem, leonardop this looks like one you should know ;)
Comment 3 Leonardo Boshell (RETIRED) gentoo-dev 2002-12-08 20:28:23 UTC
This should be fixed with versions of GDM >=2.4.0.11-r1. See bug #10190

If you're still experiencing this problem, could you post here the first 20
lines or so of your /etc/X11/startDM.sh file?

Thanks

*** This bug has been marked as a duplicate of 10190 ***
Comment 4 Edulix 2002-12-20 12:26:23 UTC
Sorry, but I had many exams and no time to To now I have the gdm-2.4.0.12-r1
ebuild, but gdm continues even in english.

My /etc/profile is well configurated, let's see:
[..]export LANG="es_ES@euro"
export LC_ALL="es_ES@euro"
export LANGUAGE="spanish"[..]

And my /etc/X11/startDM.sh is like it should be with the fix you have done: 

$ cat /etc/X11/startDM.sh
#!/bin/bash
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Martin Schlemmer <azarah@gentoo.org>
# $Header: /home/cvsroot/gentoo-x86/x11-base/xfree/files/4.2.0-r12/startDM.sh,v
1.1 2002/06/08 16:24:32 azarah Exp $

source /etc/init.d/functions.sh

if [ -e ${svcdir}/options/xdm/service ]
then
        /sbin/start-stop-daemon --start --quiet \
                --exec "`cat ${svcdir}/options/xdm/service`"
        if [ $? -ne 0 ]
        then
                #there was a error running the DM
                einfo "ERROR: could not start the Display Manager..."
        fi
fi

# We need to source /etc/profile for stuff like $LANG to work
# bug #10190.
source /etc/profile

# vim:ts=4

Can you help me ? :)

I wish all of you a merrry Christmas!
Comment 5 Leonardo Boshell (RETIRED) gentoo-dev 2002-12-22 19:48:06 UTC
I can see the problem now. Your startDM.sh script is wrong. What version of
x11-base/xfree have you installed?

A quick hack to fix this could be doing something like:

  cp /usr/portage/x11-base/xfree/files/4.2.1-r2/startDM.sh /etc/X11/

as root.
Comment 6 Edulix 2002-12-23 06:27:49 UTC
Thanks you!

That's he solution, now my GDM is runs in spanish language. 

Merry Christmas and a happy new year! =)