Set $LANGUAGE if the user picks a different locale in gdm, so that language-selector and gdm stop disagreeing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Translations |
Fix Released
|
High
|
Unassigned | ||
gdm |
Unknown
|
High
|
|||
gdm (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
language-selector (Ubuntu) |
Fix Released
|
Undecided
|
Gunnar Hjalmarsson |
Bug Description
<SRU nomination addition>
I'm about to nominate Lucid and Maverick fixes of this bug for stable release updates (SRUs), which is the reason for this addition to the bug description.
Many (most?) new Ubuntu users, who need more than one locale to set their preferences for language and various "regional formats" (date formats etc.), experience that their selections in language-selector and/or GDM give unexpected results (see below for examples). The number of duplicates of this easily reproducable bug is not insignificant. Furthermore, IMO it's reasonable to assume that to people with no previous experience from a GNU/Linux OS it's difficult to compensate for the bug by fixing it manually. For those reasons, and even if the bug doesn't exactly represent a security issue, I think it is such a "high-impact bug" that we should not want to keep distributing with the latest LTS respective latest stable release. You can only make one first impression to those who decide to try Ubuntu. ;-)
The Natty fixes were uploaded a few weeks ago, and no worrying bugs due to the changes have been reported so far. The branches I now suggest to be uploaded to -proposed were uploaded to my PPA, and the resulting builds have been tested successfully.
https:/
I would say that the risk for regressions is low.
Messures have been taken with the aim to prevent undesired surprises at first login after update.
https:/
/ Gunnar Hjalmarsson
</SRU nomination addition>
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://
* 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=
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
Related branches
description: | updated |
Changed in ubuntu-translations: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in language-selector (Ubuntu): | |
status: | New → Fix Committed |
Changed in gdm (Ubuntu): | |
importance: | Undecided → Low |
summary: |
- GDM and language-selector should agree on setting the LANG variable + Unset $LANGUAGES if the user picks a different locale in gdm |
Changed in gdm (Ubuntu): | |
assignee: | nobody → Canonical Desktop Team (canonical-desktop-team) |
summary: |
- Unset $LANGUAGES if the user picks a different locale in gdm, so that + Unset $LANGUAGE if the user picks a different locale in gdm, so that language-selector and gdm stop disagreeing |
Changed in language-selector (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in gdm (Ubuntu): | |
status: | Triaged → In Progress |
description: | updated |
summary: |
- Unset $LANGUAGE if the user picks a different locale in gdm, so that + Set $LANGUAGE if the user picks a different locale in gdm, so that language-selector and gdm stop disagreeing |
tags: | added: patch |
Changed in gdm: | |
importance: | Unknown → High |
status: | Unknown → New |
Changed in language-selector (Ubuntu): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
Changed in gdm (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in gdm: | |
status: | New → Unknown |
description: | updated |
description: | updated |
Changed in ubuntu-translations: | |
status: | Triaged → Fix Released |
Tried Beta 2 on April 9th. It becomes more interesting.
reproduce steps.
1. enable simplified Chinese. reboot. The localization on menu is good.
2. enable Thai. reboot. The menu is mixed in Thai and in Simplified Chinese. Screen shot and locale are attached.