aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlang.csh5
-rwxr-xr-xlang.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/lang.csh b/lang.csh
index 02e28e64..8072afc1 100755
--- a/lang.csh
+++ b/lang.csh
@@ -8,6 +8,11 @@ foreach file (/etc/sysconfig/i18n $HOME/.i18n)
set sourced=1
end
+if ($?GDM_LANG) then
+ set sourced=1
+ set LANG=$GDM_LANG
+endif
+
if ($sourced == 1) then
if ($?LC_ALL && $?LANG) then
if ($LC_ALL == $LANG) then
diff --git a/lang.sh b/lang.sh
index c7e0dc37..9e92d7dd 100755
--- a/lang.sh
+++ b/lang.sh
@@ -5,6 +5,11 @@ for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do
[ -f $langfile ] && . $langfile && sourced=1
done
+if [ -n "$GDM_LANG" ]; then
+ sourced=1
+ LANG="$GDM_LANG"
+fi
+
if [ "$sourced" = 1 ]; then
[ -n "$LANG" ] && export LANG || unset LANG
[ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE