aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-02-19 22:21:47 +0000
committerBill Nottingham <notting@redhat.com>2007-02-19 22:21:47 +0000
commit67e2353319ab7e8ede293409d34d2b849a607816 (patch)
tree42f7f5d7f9b601d1cd7792974aafe78793144457 /lang.sh
parentc4ccfb343d04048fca53e0c2242ca3578dae73b2 (diff)
downloadinitscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar.gz
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar.bz2
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar.xz
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.zip
if $LANG is set, don't override it (#229102)
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/lang.sh b/lang.sh
index 475f3f20..45cb7dfd 100755
--- a/lang.sh
+++ b/lang.sh
@@ -1,9 +1,14 @@
# /etc/profile.d/lang.sh - set i18n stuff
sourced=0
-for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do
- [ -f $langfile ] && . $langfile && sourced=1
-done
+
+if [ -n "$LANG" ]; then
+ sourced=1
+else
+ for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do
+ [ -f $langfile ] && . $langfile && sourced=1
+ done
+fi
if [ -n "$GDM_LANG" ]; then
sourced=1