Added support for /etc/locale.conf with fallback to /etc/sysconfig/i18n for LANG setting

This commit is contained in:
Silvan Calarco 2011-09-01 13:59:50 +02:00
parent a77a2db442
commit fc5bb6b8db
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
. /etc/sysconfig/rc
. $rc_functions
. /etc/sysconfig/i18n
[ -e /etc/locale.conf ] && . /etc/locale.conf || . /etc/sysconfig/i18n
LC_ALL=$LANG
TEXTDOMAIN=initscripts
TEXTDOMAINDIR=/usr/share/locale/

View File

@ -12,7 +12,7 @@ if [ -r $rc_base/init.d/rc.embedded ]; then
fi
. $rc_functions
. /etc/sysconfig/i18n
[ -e /etc/locale.conf ] && . /etc/locale.conf || . /etc/sysconfig/i18n
LC_ALL=$LANG
TEXTDOMAIN=initscripts

View File

@ -14,7 +14,7 @@ if [ -r $rc_base/init.d/rc.sysinit.embedded ]; then
fi
. $rc_functions
. /etc/sysconfig/i18n
[ -e /etc/locale.conf ] && . /etc/locale.conf || . /etc/sysconfig/i18n
LC_ALL=$LANG
TEXTDOMAIN=initscripts
TEXTDOMAINDIR=/usr/share/locale/