Comment 12 for bug 803858

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Robert,

On 2011-08-26 09:32, Robert Ancell wrote:
> - I'm happy to support this as a legacy interface for LightDM 1.0,
> the issue is to do it in a way that does not conflict with more
> advanced uses of setting LANG (e.g. if PAM was to set LANG which in
> my opinion is the correct location to do it).

This sounds good to me. There is a reason why I have been quiet on this topic for a few weeks. :)

I have recently moved around code for dealing with language settings, and now it's accountsservice that provides that functionality in Ubuntu. You can query accountsservice for both the current language and the available languages on the system. You also set a new language via accountsservice's SetLanguage method, and accountsservice takes care the bits and pieces behind the scenes.

Actually it's not LANG that is set (since that variable is currently reserved for other localisation stuff such as date/time formats, default paper size, etc.), but basically lightdm does not need to know that. I'd say that what you need for a simple language chooser that play well with other interfaces is now in place.