]> arthur.ath.cx Git - ConfigScripts.git/blobdiff - sys/profile
Only set LC_MESSAGES="C" for non-X11 sessions
[ConfigScripts.git] / sys / profile
index 41b767eeaca4ae956caf125d0c39f9af722174c5..bdb6ae48a03d03d2e77c70b409a20c85038aaec7 100644 (file)
@@ -19,8 +19,10 @@ export UID
 # Set locale if it is not set or doesn't contain a dot:
 [ "$LANG" = "${LANG#*.}" -a "$LANG" != "C" ] \
        && export LANG="${LANG:-de_DE}.${LC_encoding}"
-# All system messages should still be in "native" ("C") language:
-export LC_MESSAGES="C"
+# All system messages should still be in "native" ("C") language for
+# non-X11 sessions:
+[ -z "$GDMSESSION" -a -z "$XDG_SESSION_COOKIE" ] \
+       export LC_MESSAGES="C"
 # Clean up ...
 unset LC_CTYPE LC_encoding 2>/dev/null