New users should have the system default locale, not the admin one

Bug #823741 reported by Gunnar Hjalmarsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center
New
Undecided
Unassigned
accountsservice (Ubuntu)
Fix Released
Undecided
Unassigned
gnome-control-center (Ubuntu)
Confirmed
Low
Rodrigo Moya

Bug Description

New users are created with the admin's current language (the value of the LC_MESSAGES environment variable) as the initial language. It would make more sense IMO to let the system language, as set in /etc/default/locale, serve as the initial language at user creation.

I suppose that 'the culprit' is the cc_common_language_get_current_language() function in panels/common/cc-common-language.c. Personally I question the adequateness of that function, so one idea would be to replace it with e.g. a cc_default_system_language() function that parses /etc/default/locale.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, Rodrigo what do you think?

Changed in gnome-control-center (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
importance: Undecided → Low
status: New → Confirmed
summary: - Dubious initial language at user creation
+ New users should have the system default locale, not the admin one
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Even if the problem is still present in gnome-control-center, supposedly affecting GNOME users, it no longer shows up in Ubuntu. This is due to recently uploaded changes to the Ubuntu specific patches in accountsservice.
https://launchpad.net/ubuntu/+source/accountsservice/0.6.15-2ubuntu3

Now, when you in Ubuntu query accountsservice for the Language, and the Language property has not yet been set, accountsservice returns a sensible fallback value (typically the system language) instead of the empty string. For that reason the questionable cc_common_language_get_current_language() function is never called.

Changed in accountsservice (Ubuntu):
status: New → 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.