From 2fbb89f3fc1b8196f45c6bc02b006e47658f2be1 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Wed, 22 Jan 2014 00:51:50 +0000 Subject: Drop support for GDM_LANG. This is no longer needed/supported. mga#12328 --- lang.csh | 9 ++------- lang.sh | 9 --------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/lang.csh b/lang.csh index f85a6e9a..4978981c 100755 --- a/lang.csh +++ b/lang.csh @@ -4,17 +4,12 @@ if (! $?LC_SOURCED) then set LC_SOURCED=0 endif -if ($?GDM_LANG) then - set LC_SOURCED=1 - setenv LANG $GDM_LANG -else - foreach file ("$HOME/.i18n" /etc/locale.conf /etc/sysconfig/i18n) +foreach file ("$HOME/.i18n" /etc/locale.conf /etc/sysconfig/i18n) if ($LC_SOURCED != 1 && -f $file ) then eval `sed 's|=C$|=en_US|g' $file | sed 's|^#.*||' | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|' ` setenv LC_SOURCED 1 endif - end -endif +end if ($LC_SOURCED == 1) then if ($?LC_ALL && $?LANG) then diff --git a/lang.sh b/lang.sh index 8ece9ac9..f90c0795 100755 --- a/lang.sh +++ b/lang.sh @@ -9,15 +9,6 @@ elif [ "$LC_SOURCED_X11" = 1 -a -z "$DISPLAY" ]; then unset LC_SOURCED_X11 fi -# if GDM_LANG is defined that means a language other than the user default -# has been chosen trough gdm login for the session; so we define -# LC_SOURCED=1 to not read the system/user i18n files -if [ -n "$GDM_LANG" ]; then - LANG="$GDM_LANG" - LC_SOURCED=1 - export LC_SOURCED -fi - # only source one of the possible files, and in that order; # if system wide and user config are mixed and different, umpredictable # things will happen... -- cgit v1.2.1