#!/bin/bash
# Copyright (C) 2007 Pâris Quentin
#  		     Cassarin-Grand Arthur

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
export TITRE="PlayOnLinux"
export SITE="http://www.playonlinux.com/script_files/"
export REPERTOIRE=$HOME/.PlayOnLinux
export VERSION="2.0"

export VRAIPATH="$PATH"

if [ -e "$REPERTOIRE/configurations/options/pol_lang" ]
then
	POL_LANG=$(cat $REPERTOIRE/configurations/options/pol_lang)
else
	POL_LANG="$LANG"
fi


if [ ! -e "$PLAYONLINUX/lang/$POL_LANG" ]
then
	POL_LANG="fr_FR.UTF-8"
fi

if [ -e "$REPERTOIRE/configurations/options/theme" ]
then
	export POL_THEME=$(cat $REPERTOIRE/configurations/options/theme)
else
	export POL_THEME="crystal"
fi

#Codes de sorties 
EXIT_MISSING=2
EXIT_ERROR=255
EXIT_SUCCES=0


