From c91fcc2615fadf9cff6c9c51d086ac2ba9651aa4 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 23 Mar 2009 22:51:24 +0100 Subject: [PATCH] Implement "intelligent" locale setting Set the locale if it is not set or doesn't contain a dot; but all system messages should still be in "native" ("C") language. --- sys/profile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/profile b/sys/profile index 9920eb1..ef07918 100644 --- a/sys/profile +++ b/sys/profile @@ -9,6 +9,11 @@ PROFILEREAD="true" export PROFILEREAD +# Set locale if it is not set or doesn't contain a dot; +# but all system messages should still be in "native" ("C") language. +[ "$LANG" = "${LANG#*.}" ] && export LANG="${LANG:-de_DE}.ISO8859-1" +export LC_MESSAGES="C" + # Initialize PATH variable export PATH MANPATH if [ -x /usr/libexec/path_helper ]; then -- 2.39.2