]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Only set LC_MESSAGES="C" for non-X11 sessions
authorAlexander Barton <alex@barton.de>
Wed, 25 Jan 2012 23:47:08 +0000 (00:47 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 25 Jan 2012 23:47:08 +0000 (00:47 +0100)
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