Amélioration et traduction du rapport des paiements

This commit is contained in:
Laurent Destailleur 2006-10-21 16:01:43 +00:00
parent d2667a5204
commit 693d67611b
3 changed files with 6 additions and 4 deletions

View File

@ -177,13 +177,13 @@ class pdf_paiement
if ($result < 0) if ($result < 0)
{ {
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir); $this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
return; return -1;
} }
} }
$month = substr("0".$month, strlen("0".$month)-2,2); $month = sprintf("%02d",$month);
$_file = $dir . "/paiements-$month-$year" . ".pdf"; $year = sprintf("%04d",$year);
$_file = $dir . "/payments-".$month."-".$year.".pdf";
$pdf = new FPDF('P','mm','A4'); $pdf = new FPDF('P','mm','A4');
$pdf->Open(); $pdf->Open();

View File

@ -162,6 +162,7 @@ Seconds=Seconds
Today=Today Today=Today
Yesterday=Yesterday Yesterday=Yesterday
Tomorrow=Tomorrow Tomorrow=Tomorrow
Bytes=Bytes
Cut=Cut Cut=Cut
Copy=Copy Copy=Copy
Paste=Paste Paste=Paste

View File

@ -162,6 +162,7 @@ Seconds=Secondes
Today=Aujourd'hui Today=Aujourd'hui
Yesterday=Hier Yesterday=Hier
Tomorrow=Demain Tomorrow=Demain
Bytes=Octets
Cut=Couper Cut=Couper
Copy=Copier Copy=Copier
Paste=Coller Paste=Coller