forked from Wavyzz/dolibarr
Trad: Traduction des erreurs de permissions.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# Dolibarr language file - en_US - main
|
||||
charset="iso-8859-1"
|
||||
Error=Error
|
||||
ErrorForbidden=Access forbidden
|
||||
ErrorFileDoesNotExists=File %s does not exists
|
||||
ErrorCanNotCreateDir=Can not create dir %s
|
||||
ErrorConstantNotDefined=Parameter %s not defined
|
||||
|
||||
@@ -4,6 +4,9 @@ LoginWebcal=Login for Webcalendar
|
||||
AddCalendarEntry=Add entry in calendar
|
||||
ErrorWebcalLoginNotDefined=The Webcalendar login associated to your Dolibarr login <b>%s</b> is not defined.
|
||||
ErrorPasswordDiffers=Passwords differs, please type them again.
|
||||
ErrorForbidden=Access forbidden.<br>You try to access to a page, area or feature that is not allowed to your user.
|
||||
ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s.
|
||||
ErrorForbidden3=It seems that Dolibarr is not used through an authenticated session. Take a look at Dolibarr setup documentation to know how to manage authentications (htaccess, mod_auth or other...).
|
||||
Mailing=Mailing
|
||||
MailingDesc=This page allows you to send mailings to a group of people.
|
||||
MailingResult=Sending mails result
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Dolibarr language file - fr_FR - main
|
||||
charset="iso-8859-1"
|
||||
Error=Erreur
|
||||
ErrorForbidden=Acc<63>s non autoris<69>
|
||||
ErrorFileDoesNotExists=Le fichier %s n'existe pas
|
||||
ErrorCanNotCreateDir=Impossible de cr<63>er le r<>pertoire %s
|
||||
ErrorConstantNotDefined=Param<61>tre %s non d<>fini
|
||||
|
||||
@@ -4,6 +4,9 @@ LoginWebcal=Login Webcalendar
|
||||
AddCalendarEntry=Ajouter entr<74>e dans le calendrier
|
||||
ErrorWebcalLoginNotDefined=Le login Webcalendar associ<63> <20> votre login Dolibarr <b>%s</b> n'est pas d<>fini.
|
||||
ErrorPasswordDiffers=Les mots de passe ne sont pas identiques, veuillez les saisir <20> nouveau
|
||||
ErrorForbidden=Acc<63>s non autoris<69>.<br>Vous essayez d'acc<63>der <20> une page, zone ou fonction qui n'est pas autoris<69>e pour votre compte utilisateur.
|
||||
ErrorForbidden2=Les permissions pour ce login peuvent <20>tre attribu<62>e par l'administrateur Dolibarr via le menu %s->%s.
|
||||
ErrorForbidden3=Dolibarr ne semble pas fonctionner au sein d'une session authentifi<66>e. Consulter la documentation d'installation de Dolibarr pour connaitre comment g<>rer les autentifications (htaccess, mod_auth ou autre...).
|
||||
Mailing=Mailing
|
||||
MailingDesc=Cet <20>cran vous permet d'envoyer des mailing <20> un groupe de personne.
|
||||
MailingResult=R<>sultat de l'envoi du mailing
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2004 Christophe Combelles <ccomb@free.fr>
|
||||
@@ -560,59 +560,73 @@ function loginfunction()
|
||||
</form>';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
\brief Affiche message erreur de type acces interdit et arrete le programme
|
||||
\remarks l'appel a cette fonction termine le code
|
||||
\remarks L'appel a cette fonction termine le code.
|
||||
*/
|
||||
function accessforbidden()
|
||||
{
|
||||
global $langs;
|
||||
global $user, $langs;
|
||||
$langs->load("other");
|
||||
|
||||
llxHeader();
|
||||
print $langs->trans("ErrorForbidden");
|
||||
print '<div class="error">'.$langs->trans("ErrorForbidden").'</div>';
|
||||
print '<br>';
|
||||
if ($user->login) {
|
||||
print $langs->trans("Login").": ".$user->login."<br>";
|
||||
print $langs->trans("ErrorForbidden2",$langs->trans("Home"),$langs->trans("Users"));
|
||||
}
|
||||
else {
|
||||
print $langs->trans("ErrorForbidden3");
|
||||
}
|
||||
llxFooter();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
\brief Affiche message erreur system avec toutes les informations pour faciliter le diagnostique et la remont<6E>e des bugs.
|
||||
On doit appeler cette fonction quand une erreur technique bloquante est rencontr<74>e.
|
||||
Toutefois, il faut essayer de ne l'appeler qu'au sein de page php, les classes devant
|
||||
renvoyer leur erreur par l'interm<72>diaire de leur propri<72>t<EFBFBD> "error".
|
||||
\param db Handler de base utilis<69>
|
||||
\param msg Message compl<70>mentaire <20> afficher
|
||||
*/
|
||||
function dolibarr_print_error($db='',$msg='')
|
||||
{
|
||||
global $langs;
|
||||
$syslog = '';
|
||||
|
||||
if ($_SERVER['DOCUMENT_ROOT']) {
|
||||
// Mode web
|
||||
if ($_SERVER['DOCUMENT_ROOT']) // Mode web
|
||||
{
|
||||
print "Dolibarr a d<>tect<63> une erreur technique.<br>\n";
|
||||
print "Voici les informations qui pourront aider au diagnostique:<br><br>\n";
|
||||
|
||||
print "<b>Serveur:</b> ".$_SERVER["SERVER_SOFTWARE"]."<br>\n";;
|
||||
print "<b>".$langs->trans("Server").":</b> ".$_SERVER["SERVER_SOFTWARE"]."<br>\n";;
|
||||
print "<b>URL sollicit<69>e:</b> ".$_SERVER["REQUEST_URI"]."<br>\n";;
|
||||
print "<b>QUERY_STRING:</b> ".$_SERVER["QUERY_STRING"]."<br>\n";;
|
||||
print "<b>Referer:</b> ".$_SERVER["HTTP_REFERER"]."<br>\n";;
|
||||
$syslog.="url=".$_SERVER["REQUEST_URI"];
|
||||
$syslog.=", query_string=".$_SERVER["QUERY_STRING"];
|
||||
}
|
||||
else {
|
||||
// Mode CLI
|
||||
else // Mode CLI
|
||||
{
|
||||
|
||||
print "Erreur interne d<>tect<63>e...\n";
|
||||
$syslog.="pid=".getmypid();
|
||||
}
|
||||
|
||||
if ($db) {
|
||||
if ($_SERVER['DOCUMENT_ROOT']) {
|
||||
// Mode web
|
||||
if ($_SERVER['DOCUMENT_ROOT']) // Mode web
|
||||
{
|
||||
print "<br>\n";
|
||||
print "<b>Requete dernier acces en base:</b> ".$db->lastquery()."<br>\n";
|
||||
print "<b>Code retour dernier acces en base:</b> ".$db->errno()."<br>\n";
|
||||
print "<b>Information sur le dernier acc<63>s en base:</b> ".$db->error()."<br>\n";
|
||||
}
|
||||
else {
|
||||
// Mode CLI
|
||||
else // Mode CLI
|
||||
{
|
||||
print "Requete dernier acces en base:\n".$db->lastquery()."\n";
|
||||
print "Code retour dernier acces en base:\n".$db->errno()."\n";
|
||||
print "Information sur le dernier acc<63>s en base:\n".$db->error()."\n";
|
||||
@@ -623,12 +637,13 @@ function dolibarr_print_error($db='',$msg='')
|
||||
}
|
||||
|
||||
if ($msg) {
|
||||
if ($_SERVER['DOCUMENT_ROOT']) {
|
||||
// Mode web
|
||||
print "<b>Message:</b> ".$msg."<br>\n" ;
|
||||
} else {
|
||||
// Mode CLI
|
||||
print "Message:\n".$msg."\n" ;
|
||||
if ($_SERVER['DOCUMENT_ROOT']) // Mode web
|
||||
{
|
||||
print "<b>".$langs->trans("Message").":</b> ".$msg."<br>\n" ;
|
||||
}
|
||||
else // Mode CLI
|
||||
{
|
||||
print $langs->trans("Message").":\n".$msg."\n" ;
|
||||
}
|
||||
$syslog.=", msg=".$msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user