diff options
author | Bill Nottingham <notting@redhat.com> | 2000-03-31 21:12:22 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-03-31 21:12:22 +0000 |
commit | 1c06cc652b19cc546909c46bbdb03816cd75ecbb (patch) | |
tree | fbb43527de6ce51a121d7dcfb022784741c51846 /lang.sh | |
parent | db538e83c5f3e2b463a9edda232c1cba946733c8 (diff) | |
download | initscripts-1c06cc652b19cc546909c46bbdb03816cd75ecbb.tar initscripts-1c06cc652b19cc546909c46bbdb03816cd75ecbb.tar.gz initscripts-1c06cc652b19cc546909c46bbdb03816cd75ecbb.tar.bz2 initscripts-1c06cc652b19cc546909c46bbdb03816cd75ecbb.tar.xz initscripts-1c06cc652b19cc546909c46bbdb03816cd75ecbb.zip |
source /home/devel/notting/.i18n as well as /etc/sysconfig/i18n (idea from <ivanyi@internet.sk>)
Diffstat (limited to 'lang.sh')
-rwxr-xr-x | lang.sh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |