[Bug 553162] Re: Set $LANGUAGE if the user picks a different locale in gdm, so that language-selector and gdm stop disagreeing

Gunnar Hjalmarsson 553162 at bugs.launchpad.net
Fri Dec 3 23:23:16 GMT 2010


Hi Dave,

On 2010-12-03 12:12, Dave Walker wrote:
> Would someone be able to comment if communication with upstream is 
> still active please?

Communication with upstream (GNOME) is applicable for two reasons.

Previously I suggested some changes to /etc/gdm/Xsession, and tried to 'sell' those changes upstream.
https://bugzilla.gnome.org/show_bug.cgi?id=633295
That discussion with upstream appears to be over, doesn't it? Two other ways to achieve the same thing for Ubuntu have been discussed:
1. Sub-scripts to Xsession, belonging to language-selector
2. Xsession patch in the Ubuntu gdm package
I included option 1 in the latest merge proposals, since I can see a couple of advantages with it. Waiting for Martin's response.

I'm also suggesting changes to the GDM source files
daemon/gdm-session-settings.c and daemon/gdm-session-settings.h, which haven't been discussed with upstream yet. Please see remark in the description field of https://code.launchpad.net/~gunnarhj/ubuntu/natty/gdm/lp-553162/+merge/42415

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/553162

Title:
  Set $LANGUAGE if the user picks a different locale in gdm, so that language-selector and gdm stop disagreeing

Status in GDM: The Gnome Display Manager:
  New
Status in Ubuntu Translations:
  Triaged
Status in “gdm” package in Ubuntu:
  In Progress
Status in “language-selector” package in Ubuntu:
  In Progress

Bug description:
  Binary package hint: gdm

This is a follow-up to bug 407300, which has been fixed but a separate issue remains. I'm opening a separate task for language-selector, as it refers to the interaction between it and gdm.

The problem is basically that GDM seems to always override the LANG values set by language selector, and quite easily one can get to a situation where LANGUAGE and LANG differ and the desktop is a mixture of two languages.

Steps to reproduce (a):

 * New install, choosing Catalan in the installer
 * I log in without doing any changes to the language in GDM
 * I start System > Administration > Language support
 * I choose English there
 * I log out
 * I log back in without doing any changes in the GDM language chooser
 * My session is half English and half Catalan due to LANGUAGE=en and LANG=ca_ES.utf8 (Firefox in Catalan, gnome-panel in English, gnome-menus in Catalan).

Steps to reproduce (b):

 * Perform a full installation in English, as per http://testcases.qa.ubuntu.com/Install/NonEnglishLanguage#Installation%20Full%20Network%20Support
 * Go to System > Administration > Language Support
 * Install the Traditional Chinese language
 * Bring Traditional Chinese to the top of the list to become the main desktop language
 * Press the "Apply System-wide..." button
 * Reboot
 * When entering the session, you'll notice the desktop half translated in English, half in Chinese. The most noticeable parts shown in English are all the menus and Firefox. These applications seem to ignore the LANGUAGE variable
 * Running 'locale' on the terminal shows that LANG=en_US.UTF-8 and LANGUAGE=zh_K:en_US:en

I understand that this might be a problem in each application, as they should give LANGUAGE preference. Rather than filing a bug in each app right now, would it not make more sense to ensure that at least the first locale in LANGUAGE, the one in LANG and LC_MESSAGES are the same? (assuming it is possible to do such a thing, of course).

Also see the related bug 552664







More information about the Ubuntu-sponsors mailing list