#!/bin/sh

THISDIR=$(dirname "$0")
RESPONSE=$(alert \
"Voulez-vous installer le fichier de localisation Français pour People.iro ?" Annuler OK)
if [ "$RESPONSE" = "OK" ]
then
	if [ -d /boot/home/config/settings/People.iro/Languages ]
	then
		cp "$THISDIR/Français" /boot/home/config/settings/People.iro/Languages
		alert Fait OK
	else
		RESULT=$(alert "Le dossier Language n'existe pas. Voulez-vous le créer? " Annuler OK)
		if [ "$RESULT"  = "OK" ]
		then
			if [ ! -d /boot/home/config/settings/People.iro ]
			then
				mkdir /boot/home/config/settings/People.iro
			fi
			mkdir /boot/home/config/settings/People.iro/Languages
			cp "$THISDIR/Français" /boot/home/config/settings/People.iro/Languages
			alert Fait OK
		else
			alert "Installation annulée." OK
		fi
	fi
else
	alert "Installation annulée." OK
fi
