From 27b9c1144837c7e0c46e6e6e3a28aa898a4a7c57 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 26 Jan 2012 00:47:08 +0100 Subject: [PATCH] Only set LC_MESSAGES="C" for non-X11 sessions --- sys/profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/profile b/sys/profile index 41b767e..bdb6ae4 100644 --- a/sys/profile +++ b/sys/profile @@ -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 -- 2.39.2