convert all LC_* variables found in i18n
This commit is contained in:
parent
5464d2588c
commit
55f9207f1c
24
systemd.spec
24
systemd.spec
@ -399,8 +399,32 @@ fi
|
|||||||
# Migrate /etc/sysconfig/i18n
|
# Migrate /etc/sysconfig/i18n
|
||||||
if [ -e /etc/sysconfig/i18n -a ! -e /etc/locale.conf ]; then
|
if [ -e /etc/sysconfig/i18n -a ! -e /etc/locale.conf ]; then
|
||||||
unset LANG
|
unset LANG
|
||||||
|
unset LC_CTYPE
|
||||||
|
unset LC_NUMERIC
|
||||||
|
unset LC_TIME
|
||||||
|
unset LC_COLLATE
|
||||||
|
unset LC_MONETARY
|
||||||
|
unset LC_MESSAGES
|
||||||
|
unset LC_PAPER
|
||||||
|
unset LC_NAME
|
||||||
|
unset LC_ADDRESS
|
||||||
|
unset LC_TELEPHONE
|
||||||
|
unset LC_MEASUREMENT
|
||||||
|
unset LC_IDENTIFICATION
|
||||||
. /etc/sysconfig/i18n 2>&1 || :
|
. /etc/sysconfig/i18n 2>&1 || :
|
||||||
[ -n "$LANG" ] && echo LANG=$LANG > /etc/locale.conf 2>&1 || :
|
[ -n "$LANG" ] && echo LANG=$LANG > /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_CTYPE" ] && echo LC_CTYPE=$LC_CTYPE >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_NUMERIC" ] && echo LC_NUMERIC=$LC_NUMERIC >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_TIME" ] && echo LC_TIME=$LC_TIME >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_COLLATE" ] && echo LC_COLLATE=$LC_COLLATE >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_MONETARY" ] && echo LC_MONETARY=$LC_MONETARY >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_MESSAGES" ] && echo LC_MESSAGES=$LC_MESSAGES >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_PAPER" ] && echo LC_PAPER=$LC_PAPER >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_NAME" ] && echo LC_NAME=$LC_NAME >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_ADDRESS" ] && echo LC_ADDRESS=$LC_ADDRESS >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_TELEPHONE" ] && echo LC_TELEPHONE=$LC_TELEPHONE >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_MEASUREMENT" ] && echo LC_MEASUREMENT=$LC_MEASUREMENT >> /etc/locale.conf 2>&1 || :
|
||||||
|
[ -n "$LC_IDENTIFICATION" ] && echo LC_IDENTIFICATION=$LC_IDENTIFICATION >> /etc/locale.conf 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Migrate /etc/sysconfig/keyboard
|
# Migrate /etc/sysconfig/keyboard
|
||||||
|
Loading…
Reference in New Issue
Block a user