I created a pinstall.sh file that should be displayed in French or in English while installing my application:
Code: Select all
#!/bin/sh
# Toutou LINUX delete/replace obsolete scripts if present and create link from old to new script...
# set locale
LNG=$(echo $LANG|cut -d':' -f1)
LOCALE=$(echo $LNG|cut -d'_' -f1)
if [ $LOCALE != "fr" ];then
echo "English_text"
...
else
echo "French_text"
...
fi
exit 0
What's going wrong?
Regards.