From 599fb864ccaf0daf9cba822939c8715688bed520 Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Fri, 20 Feb 2004 14:34:20 +0000 Subject: fix for cases when LANGUAGE variable is a list of values (bug #6918) --- scripts/splash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/splash.sh b/scripts/splash.sh index e571816..2d0c15a 100644 --- a/scripts/splash.sh +++ b/scripts/splash.sh @@ -31,7 +31,7 @@ gprintf() { if [ -n "$GP_LANG" ]; then TEXT=`OUTPUT_CHARSET=UTF-8 LANGUAGE=$GP_LANG LANG=$GP_LANG gettext -e --domain=$TEXTDOMAIN "$1"` else - TEXT=`OUTPUT_CHARSET=UTF-8 LANG=$LANGUAGE gettext -e --domain=$TEXTDOMAIN "$1"` + TEXT=`OUTPUT_CHARSET=UTF-8 LANG=$(echo $LANGUAGE | cut -d: -f1) gettext -e --domain=$TEXTDOMAIN "$1"` fi else TEXT=$1 -- cgit v1.2.1