From 83b82453a5fcf7f1fc704f8dec2aae7d3004c3b3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 22 Mar 2007 23:36:25 +0000 Subject: [PATCH] Message erreur dans langue utilisateur --- htdocs/includes/modules/facture/pdf_crabe.modules.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index a6c136aaf6d..fe8552ecd8f 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -141,7 +141,7 @@ class pdf_crabe extends ModelePDFFactures { if (create_exdir($dir) < 0) { - $this->error=$outputlangs->transnoentities("ErrorCanNotCreateDir",$dir); + $this->error=$langs->trans("ErrorCanNotCreateDir",$dir); return 0; } } @@ -363,18 +363,18 @@ class pdf_crabe extends ModelePDFFactures } else { - $this->error=$outputlangs->transnoentities("ErrorCanNotCreateDir",$dir); + $this->error=$langs->transnoentities("ErrorCanNotCreateDir",$dir); $langs->setPhpLang(); // On restaure langue session return 0; } } else { - $this->error=$outputlangs->transnoentities("ErrorConstantNotDefined","FAC_OUTPUTDIR"); + $this->error=$langs->trans("ErrorConstantNotDefined","FAC_OUTPUTDIR"); $langs->setPhpLang(); // On restaure langue session return 0; } - $this->error=$outputlangs->transnoentities("ErrorUnknown"); + $this->error=$langs->trans("ErrorUnknown"); $langs->setPhpLang(); // On restaure langue session return 0; // Erreur par defaut } @@ -460,7 +460,7 @@ class pdf_crabe extends ModelePDFFactures } else { - $this->error=$outputlangs->transnoentities("ErrorSQL")." $sql"; + $this->error=$langs->trans("ErrorSQL")." $sql"; return 0; }