[systemd-devel] [RFC PATCH 2/2] localed: add LANGUAGE= fallback when LANG= is specified

Martin Pitt martin.pitt at ubuntu.com
Mon Feb 2 02:56:39 PST 2015


Zbigniew Jędrzejewski-Szmek [2015-01-31 20:20 +0100]:
> I think the implementation is fine, since it is rather trivial, but I'm
> less certain about the implications of setting LANGUAGE in addtion to
> LANG.

That's totally fine -- it's precisely what $LANGUAGE is meant for. One
must be aware that it is a GNU extension, i. e. software like
thunderbird won't respect it and thus just use $LANG (in which case
you are no worse than now). But pretty much all "native" Linux sofware
does and thus will behave as intended.  We've used this schema in
Ubuntu since around 2005 [1].

Now, I wish such a fallback list would be in upstream glibc so that
OSes, systemd etc. wouldn't have to repeat and maintain it; but while
[1] looks quite complex, it hasn't really changed in years.

If this patch goes in, I'm happy to augment the list according to [1]
and then move our language-selector to use that instead, to reduce
duplication.

Martin

[1] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/language-selector/vivid/view/head:/data/languagelist
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the systemd-devel mailing list