* resynced some functionality with pkg-citadel
[citadel.git] / webcit / debian / webcit.init
index 123d096c025dcb2950e0da4edd4ef9d2ec419625..e237ac867bd3097569637405443b50800686751f 100644 (file)
@@ -24,10 +24,6 @@ DEFAULT=/etc/default/webcit
 LOGDIR=/var/log/webcit/
 
 
-unset LANG
-unset LANGUAGE
-unset LC_ALL
-unset LOCALE
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
 
@@ -53,6 +49,14 @@ if test -f $DEFAULT; then
   . $DEFAULT
 fi
 
+unset LANG
+unset LANGUAGE
+unset LC_ALL
+unset LOCALE
+if test -n "$WEBCIT_LANG" -a "$WEBCIT_LANG" != "UNLIMITED"; then
+    export LANG=$WEBCIT_LANG
+fi 
+
 if test -z "$TZ"; then
        if test -e /etc/timezone; then
                TZ=`cat /etc/timezone`