aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-02-21 20:33:03 +0000
committerBill Nottingham <notting@redhat.com>2003-02-21 20:33:03 +0000
commit4e9410b4980f826786479d323c37060bbcb0851f (patch)
tree6f11a23d9b3b957b35f996a89c67dbf68616687d
parentd7802ae1da34b67a8cef5838562e168f3f6c8c1c (diff)
downloadinitscripts-4e9410b4980f826786479d323c37060bbcb0851f.tar
initscripts-4e9410b4980f826786479d323c37060bbcb0851f.tar.gz
initscripts-4e9410b4980f826786479d323c37060bbcb0851f.tar.bz2
initscripts-4e9410b4980f826786479d323c37060bbcb0851f.tar.xz
initscripts-4e9410b4980f826786479d323c37060bbcb0851f.zip
handle LANGUAGE specially for zh_CN.GB18030 & gdm (#84773)
-rwxr-xr-xlang.csh6
-rwxr-xr-xlang.sh4
2 files changed, 10 insertions, 0 deletions
diff --git a/lang.csh b/lang.csh
index a22c12df..dfc4bad5 100755
--- a/lang.csh
+++ b/lang.csh
@@ -11,6 +11,12 @@ end
if ($?GDM_LANG) then
set sourced=1
setenv LANG $GDM_LANG
+ if ($?LANGUAGE) then
+ unsetenv LANGUAGE
+ endif
+ if ("$GDM_LANG" == "zh_CN.GB18030") then
+ setenv LANGUAGE "zh_CN.GB18030:zh_CN.GB2312:zh_CN"
+ endif
endif
if ($sourced == 1) then
diff --git a/lang.sh b/lang.sh
index 4936e9ea..534d465c 100755
--- a/lang.sh
+++ b/lang.sh
@@ -8,6 +8,10 @@ done
if [ -n "$GDM_LANG" ]; then
sourced=1
LANG="$GDM_LANG"
+ unset LANGUAGE
+ if [ "$GDM_LANG" = "zh_CN.GB18030" ]; then
+ export LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
+ fi
fi
if [ "$sourced" = 1 ]; then