Internationalization
This commit is contained in:
parent
7ce5ddbf02
commit
6761e1ef33
@ -218,7 +218,7 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
|
|
||||||
if ($conf->expedition->dir_output)
|
if ($conf->expedition->dir_output)
|
||||||
{
|
{
|
||||||
// Definition de $dir et $file
|
// Definition of $dir and $file
|
||||||
if ($object->specimen)
|
if ($object->specimen)
|
||||||
{
|
{
|
||||||
$dir = $conf->expedition->dir_output."/sending";
|
$dir = $conf->expedition->dir_output."/sending";
|
||||||
@ -390,10 +390,10 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Use new auto collum system
|
// Use new auto column system
|
||||||
$this->prepareArrayColumnField($object, $outputlangs, $hidedetails, $hidedesc, $hideref);
|
$this->prepareArrayColumnField($object, $outputlangs, $hidedetails, $hidedesc, $hideref);
|
||||||
|
|
||||||
// Simulation de tableau pour connaitre la hauteur de la ligne de titre
|
// Table simulation to know the height of the title line
|
||||||
$pdf->startTransaction();
|
$pdf->startTransaction();
|
||||||
$this->pdfTabTitles($pdf, $tab_top, $tab_height, $outputlangs, $hidetop);
|
$this->pdfTabTitles($pdf, $tab_top, $tab_height, $outputlangs, $hidetop);
|
||||||
$pdf->rollbackTransaction(true);
|
$pdf->rollbackTransaction(true);
|
||||||
@ -606,10 +606,10 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
$bottomlasttab=$this->page_hauteur - $heightforinfotot - $heightforfreetext - $heightforfooter + 1;
|
$bottomlasttab=$this->page_hauteur - $heightforinfotot - $heightforfreetext - $heightforfooter + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Affiche zone totaux
|
// Display total area
|
||||||
$posy=$this->_tableau_tot($pdf, $object, 0, $bottomlasttab, $outputlangs);
|
$posy=$this->_tableau_tot($pdf, $object, 0, $bottomlasttab, $outputlangs);
|
||||||
|
|
||||||
// Pied de page
|
// Pagefoot
|
||||||
$this->_pagefoot($pdf, $object, $outputlangs);
|
$this->_pagefoot($pdf, $object, $outputlangs);
|
||||||
if (method_exists($pdf, 'AliasNbPages')) $pdf->AliasNbPages();
|
if (method_exists($pdf, 'AliasNbPages')) $pdf->AliasNbPages();
|
||||||
|
|
||||||
@ -655,10 +655,10 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
*
|
*
|
||||||
* @param PDF $pdf Object PDF
|
* @param PDF $pdf Object PDF
|
||||||
* @param Facture $object Object invoice
|
* @param Facture $object Object invoice
|
||||||
* @param int $deja_regle Montant deja regle
|
* @param int $deja_regle Amount already paid
|
||||||
* @param int $posy Position depart
|
* @param int $posy Start Position
|
||||||
* @param Translate $outputlangs Objet langs
|
* @param Translate $outputlangs Objet langs
|
||||||
* @return int Position pour suite
|
* @return int Position for suite
|
||||||
*/
|
*/
|
||||||
protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
|
protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
|
||||||
{
|
{
|
||||||
@ -673,7 +673,7 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
$tab2_hl = 4;
|
$tab2_hl = 4;
|
||||||
$pdf->SetFont('', 'B', $default_font_size - 1);
|
$pdf->SetFont('', 'B', $default_font_size - 1);
|
||||||
|
|
||||||
// Tableau total
|
// Total table
|
||||||
$col1x = $this->posxweightvol-50; $col2x = $this->posxweightvol;
|
$col1x = $this->posxweightvol-50; $col2x = $this->posxweightvol;
|
||||||
/*if ($this->page_largeur < 210) // To work with US executive format
|
/*if ($this->page_largeur < 210) // To work with US executive format
|
||||||
{
|
{
|
||||||
@ -824,7 +824,7 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
pdf_watermark($pdf, $outputlangs, $this->page_hauteur, $this->page_largeur, 'mm', $conf->global->SHIPPING_DRAFT_WATERMARK);
|
pdf_watermark($pdf, $outputlangs, $this->page_hauteur, $this->page_largeur, 'mm', $conf->global->SHIPPING_DRAFT_WATERMARK);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Prepare la suite
|
//Prepare next
|
||||||
$pdf->SetTextColor(0, 0, 60);
|
$pdf->SetTextColor(0, 0, 60);
|
||||||
$pdf->SetFont('', 'B', $default_font_size + 3);
|
$pdf->SetFont('', 'B', $default_font_size + 3);
|
||||||
|
|
||||||
@ -1006,7 +1006,7 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Recipient name
|
//Recipient name
|
||||||
// On peut utiliser le nom de la societe du contact
|
// You can use the name of the contact company
|
||||||
if ($usecontact && !empty($conf->global->MAIN_USE_COMPANY_NAME_OF_CONTACT)) {
|
if ($usecontact && !empty($conf->global->MAIN_USE_COMPANY_NAME_OF_CONTACT)) {
|
||||||
$thirdparty = $object->contact;
|
$thirdparty = $object->contact;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user