summaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorEun-Ju KIm <eukim@redhat.com>2008-05-09 03:16:09 +0000
committerEun-Ju KIm <eukim@redhat.com>2008-05-09 03:16:09 +0000
commit20ae37592f30516cb23d138ff2d60cdc3f490723 (patch)
tree7a062d877a43e57a1d26bb737e0dadb6a51f6b3f /lang.sh
parent1bd1096da0802b74cf738c7dab22667abf951c97 (diff)
parent73a91036b96450f976c5e45d3478d4b6f905c79a (diff)
downloadinitscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar.gz
initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar.xz
initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/initscripts
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/lang.sh b/lang.sh
index 62364d06..7fe9e3ff 100755
--- a/lang.sh
+++ b/lang.sh
@@ -3,20 +3,14 @@
sourced=0
if [ -n "$LANG" ]; then
- sourced=1
+ saved_lang="$LANG"
+ [ -f $HOME/.i18n ] && . $HOME/.i18n && sourced=1
+ LANG="$saved_lang"
+ unset saved_lang
else
for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do
- [ -f $langfile ] && . $langfile && sourced=1
- done
-fi
-
-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
+ [ -f $langfile ] && . $langfile && sourced=1
+ done
fi
if [ "$sourced" = 1 ]; then