diff options
author | Eun-Ju KIm <eukim@redhat.com> | 2008-05-09 03:16:09 +0000 |
---|---|---|
committer | Eun-Ju KIm <eukim@redhat.com> | 2008-05-09 03:16:09 +0000 |
commit | 20ae37592f30516cb23d138ff2d60cdc3f490723 (patch) | |
tree | 7a062d877a43e57a1d26bb737e0dadb6a51f6b3f /lang.csh | |
parent | 1bd1096da0802b74cf738c7dab22667abf951c97 (diff) | |
parent | 73a91036b96450f976c5e45d3478d4b6f905c79a (diff) | |
download | initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar.gz initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar.bz2 initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.tar.xz initscripts-20ae37592f30516cb23d138ff2d60cdc3f490723.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/initscripts
Diffstat (limited to 'lang.csh')
-rwxr-xr-x | lang.csh | 26 |
1 files changed, 11 insertions, 15 deletions
@@ -1,28 +1,24 @@ # /etc/profile.d/lang.csh - set i18n stuff set sourced=0 + if ($?LANG) then - set sourced=1 + set saved_lang=$LANG + if ( -f $HOME/.i18n ) then + eval `grep -v '^[:blank:]*#' $HOME/.i18n | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'` + set sourced=1 + endif + setenv LANG $saved_lang + unset saved_lang else foreach file (/etc/sysconfig/i18n $HOME/.i18n) - if ( -f $file ) then + if ( -f $file ) then eval `grep -v '^[:blank:]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'` - endif - set sourced=1 + set sourced=1 + endif end endif -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 if ($?LC_ALL && $?LANG) then if ($LC_ALL == $LANG) then |