No localizations available

Bug #35573 reported by ma2412ma
74
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
Fix Released
Medium
Anthony Mercatante

Bug Description

I'm using the latest version of Dapper Drake, and the login screen (KDM) is always shown in English, although I've a German environment, this should be changed.

Kenny Duffus (kduffus)
Changed in kdebase:
assignee: nobody → kubuntu-team
Revision history for this message
Barry deFreese (bddebian) wrote :

Can you please provide more information about how you are changing your locale settings? Thank you.

Changed in kdebase:
status: Unconfirmed → Needs Info
Revision history for this message
ma2412ma (ma2412ma) wrote :

Actually, I haven't changed it, I set it to German during the installation process. I haven't done anything else. Everything else except KDM is correctly translated, even the splash screen during startup of KDE.

Revision history for this message
Oscar (osh-nbit) wrote :

I see the same behaviour, as reported in bug 43389. I'll close it as a duplicate of this one.

Revision history for this message
Didier Raboud (odyx) wrote :

Do you have language-pack-kde-de installed ?

Revision history for this message
ma2412ma (ma2412ma) wrote :

Yes, it is installed.

Revision history for this message
Jose Bernardo (bernardo-bandos) wrote :

I see the same problem with the portuguese locale, and also my kde menus and many of the kde apps show in english. I have language-pack-kde-pt and kde-i18n-pt installed, and I choose Portuguese for the install language. I've tried the language settings changer, but didn't help; also changing the language in kde's system settings didn't change anything.
I have this behaviour on two laptops, one installed from the beta 2 and upgraded every day, and the other one installed from the RC.
I have also a pc still running breezy that doesn't show this problem, all menus show in Portuguese, and kde menus and apps show in Portuguese.
I have yet to see if this still happens with kde 3.5.3

Revision history for this message
Jose Bernardo (bernardo-bandos) wrote :

No change with kde 3.5.3. The kde menu shows in english, kcontrol shows in english, the applets called by kcontrol show in portuguese as they should.

Revision history for this message
Olivier Cortès (olive) wrote :

Another confirmation on official Kubuntu Dapper CD (live/install): during installation, i choose "french". The install goes fine. After rebooting, KDM is in English, but the KDE session is in French (mostly).

If I manually put "Language=fr_FR" in /etc/kde3/kdm/kdmrc, KDM speaks french.

I think it should detect it automatically from ENV : /etc/environment sets the global system language, it should be sourced in /etc/init.d/kdm and them KDM could detect $LC_ALL or $LANG ? this is the way GDM does, it falls back to english or C only if $LANG is not set, or set to a wrong value.

Revision history for this message
Martin Böhm (martin.bohm) wrote :

I confirm this bug for Kubuntu Dapper and the Czech language settings on a number of computers, too. ( I hope it will be resolved ASAP, because as a member of a localisation team I feel a bit awkward when the first Kubuntu screen the user sees is in English. )

Revision history for this message
ma2412ma (ma2412ma) wrote :

Any news on this bug? Still present in Edgy - pretty embarrassing for a distribution that claims "that software tools should be usable by people in their local language" in its philosophy. A solution was already proposed by Olivier Cortes two entries above (although I believe this behavior of KDM is not present in other distributions such as Suse Linux).

Revision history for this message
Jonathan Riddell (jr) wrote :

This should be handled by the live CD installer in one of its post-install scripts.

if /etc/kde3/kdm/kdmrc contains "#Language=de_DE" then uncomment it and put the $LANG variable in place.

Revision history for this message
Colin Watson (cjwatson) wrote :

That's possible, but I really think that this should be done by kdm reading the language from /etc/default/locale instead, rather than copying the locale into yet more places.

Revision history for this message
Colin Watson (cjwatson) wrote :

(Plus, that would mean that you'd magically get to fix everyone's system on upgrade. Make sure to fall back to /etc/environment if /etc/default/locale isn't there. See gdm, which I think does something similar already.)

Revision history for this message
Andres Mujica (andres.mujica) wrote :

how can i fix this on my system??

i've got a dapper with the same problem

Revision history for this message
Andres Mujica (andres.mujica) wrote :

i've noticed this:

from konsole with my user

$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

openning a new shell

$ su - andres.mujica
Password:
andres.mujica@akita:~$ locale
LANG=es_CO.UTF-8
LANGUAGE=es_CO:es
LC_CTYPE="es_CO.UTF-8"
LC_NUMERIC="es_CO.UTF-8"
LC_TIME="es_CO.UTF-8"
LC_COLLATE="es_CO.UTF-8"
LC_MONETARY="es_CO.UTF-8"
LC_MESSAGES="es_CO.UTF-8"
LC_PAPER="es_CO.UTF-8"
LC_NAME="es_CO.UTF-8"
LC_ADDRESS="es_CO.UTF-8"
LC_TELEPHONE="es_CO.UTF-8"
LC_MEASUREMENT="es_CO.UTF-8"
LC_IDENTIFICATION="es_CO.UTF-8"
LC_ALL=

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) wrote : Re: [Bug 35573] Re: No localizations available

SEAQ - Andres Mujica napisał(a):
> i've noticed this:
>
> from konsole with my user

To fix it manually, you have to run kcontrol, choose "login manager",
click "Administrator mode" and change language in one of the tabs.

Revision history for this message
Andres Mujica (andres.mujica) wrote :

Thanks for the info, it works but only for kdm, i mean the kdm login page is
at the language it's suposed to be, but the locale settings didn't change,
they're still with POSIX.

All the KDE apps use the control center setting for language but firefox and
anything else not related to KDE would default to english...

Revision history for this message
Andres Mujica (andres.mujica) wrote :

well i'm fighting with this and found several things that could lead to an answer.

with feisty the kdebase-bin package has this two files not directly related to this bug

dpkg -L kdebase-bin | grep ubuntu
/usr/share/apps/kxkb/ubuntu.xmodmap
/etc/X11/Xsession.d/80ubuntu-xmodmap

with my dapper and
dpkg -l | grep kdebase-bin
ii kdebase-bin 3.5.2-0ubuntu27 core binaries for the KDE base module

there's no such files.

the /etc/pam.d/kdm file invoques pam_env.so this way with 3.5.2-0ubuntu27 on dapper

auth required pam_env.so

the same file with feisty and 3.5.6-0ubuntu20 treats env as this:

auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale

another thing i've noticed is that the problem only ocurrs with my ldap users and there's no problem with my system users... i'm gonna continue poking around and i'll let you know

Revision history for this message
Andres Mujica (andres.mujica) wrote :

ok. if i change kdm to gdm with dpk-reconfgiure kdm the locale is correctly set inside kde or gnome with both local and ldap users.

So the difference must be at gdm and kdm init scripts.

so here it 's my solution (re-reading several bugs related to this it seems that was suggested by colin...)

with this it worked!!

--- /etc/init.d/kdm.ubuntu 2007-05-02 21:42:24.000000000 -0500
+++ /etc/init.d/kdm 2007-05-02 21:42:35.000000000 -0500
@@ -16,6 +16,16 @@
 PIDFILE=/var/run/kdm.pid
 UPGRADEFILE=/var/run/kdm.upgrade

+if [ -r /etc/environment ]; then
+ if LANG=$(pam_getenv -l LANG); then
+ export LANG
+ fi
+ if LANGUAGE=$(pam_getenv -l LANGUAGE); then
+ export LANGUAGE
+ fi
+
+fi
+
 test -x $DAEMON || exit 0

 # uncomment, if you want auto-logon to be runlevel-dependant

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

apparently tonio's going to fix this.

Changed in kdebase:
assignee: kubuntu-team → tonio
Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

[22:46] <Tonio_> Hobbsee: it is fixed
[22:46] <Tonio_> Hobbsee: kdm is now localised

Changed in kdebase:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.