blob: b313cc7d81dacdf5b352814e0d03945e72ca9ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
tmplang="$LANG"
test "$LC_MESSAGES" != "" && tmplang="$LC_MESSAGES"
test "$LC_ALL" != "" && tmplang="$LC_ALL"
test "$LANGUAGE" != "" && tmplang="$LANGUAGE"
lang=`echo $tmplang|cut -d "_" -f 1`
case $lang in
en)
lang=gb
echo $tmplang | grep en_US &>/dev/null && lang=en
;;
de|fr|it|pt|es|se)
;;
*)
lang=gb
;;
esac
echo $lang
|