summaryrefslogtreecommitdiff
path: root/src/localed.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-08-31 14:09:14 +0200
committerLennart Poettering <lennart@poettering.net>2011-08-31 14:10:50 +0200
commit07bceef2a9c520e24da427c7ce500ad36ad37571 (patch)
tree4594865c29d0742e9d4d262d45e501fabfe26e9a /src/localed.c
parent4dc380d16dfbead78de9caaf5104dbc00bac6d75 (diff)
locale: support $LANGUAGE too
$LANGUAGE is a GNU extension that is probably worth supporting, since it allows specifiying an order of languages. https://bugs.freedesktop.org/show_bug.cgi?id=40510
Diffstat (limited to 'src/localed.c')
-rw-r--r--src/localed.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/localed.c b/src/localed.c
index cb8acf2079..d7dcc9e95b 100644
--- a/src/localed.c
+++ b/src/localed.c
@@ -59,6 +59,7 @@ enum {
* using LANG instead. */
PROP_LANG,
+ PROP_LANGUAGE,
PROP_LC_CTYPE,
PROP_LC_NUMERIC,
PROP_LC_TIME,
@@ -76,6 +77,7 @@ enum {
static const char * const names[_PROP_MAX] = {
[PROP_LANG] = "LANG",
+ [PROP_LANGUAGE] = "LANGUAGE",
[PROP_LC_CTYPE] = "LC_CTYPE",
[PROP_LC_NUMERIC] = "LC_NUMERIC",
[PROP_LC_TIME] = "LC_TIME",
@@ -132,6 +134,7 @@ static int read_data(void) {
r = parse_env_file("/etc/locale.conf", NEWLINE,
"LANG", &data[PROP_LANG],
+ "LANGUAGE", &data[PROP_LANGUAGE],
"LC_CTYPE", &data[PROP_LC_CTYPE],
"LC_NUMERIC", &data[PROP_LC_NUMERIC],
"LC_TIME", &data[PROP_LC_TIME],