slitaz-boot-scripts rev 467

gettext needs locale definition files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 21 14:07:33 2021 +0000 (16 months ago)
parents a53219934611
children d37d21683dd1
files etc/init.d/system.sh
line diff
     1.1 --- a/etc/init.d/system.sh	Tue Sep 15 15:00:15 2020 +0000
     1.2 +++ b/etc/init.d/system.sh	Sun Feb 21 14:07:33 2021 +0000
     1.3 @@ -31,6 +31,8 @@
     1.4  fi
     1.5  . /etc/locale.conf
     1.6  action 'Setting system locale: %s' "$LANG"
     1.7 +[ -d /usr/lib/locale/${LANG%.*} ] ||
     1.8 +localdef -i ${LANG%.*} -c -f UTF-8 /usr/lib/locale/${LANG%.*}
     1.9  export LC_ALL=$LANG
    1.10  status
    1.11