From 1c06cc652b19cc546909c46bbdb03816cd75ecbb Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 31 Mar 2000 21:12:22 +0000 Subject: source /home/devel/notting/.i18n as well as /etc/sysconfig/i18n (idea from ) --- lang.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lang.sh') diff --git a/lang.sh b/lang.sh index ad8370da..416f6e8b 100755 --- a/lang.sh +++ b/lang.sh @@ -1,7 +1,11 @@ # /etc/profile.d/lang.sh - set i18n stuff -if [ -f /etc/sysconfig/i18n ]; then - . /etc/sysconfig/i18n +sourced=0 +for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do + [ -f $langfile ] && . $langfile && sourced=1 +done + +if [ "$sourced" = 1 ]; then if [ -n "$LANG" ] ; then [ "$LANG" = "C" ] && LANG="en_US" export LANG @@ -49,5 +53,5 @@ if [ -f /etc/sysconfig/i18n ]; then esac fi - unset SYSFONTACM + unset SYSFONTACM SYSFONT fi -- cgit