New: add specific translation for title of documents
This commit is contained in:
parent
302ee97d31
commit
48d79357a0
@ -263,10 +263,10 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
$pdf->SetDrawColor(128,128,128);
|
$pdf->SetDrawColor(128,128,128);
|
||||||
|
|
||||||
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
|
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
|
||||||
$pdf->SetSubject($outputlangs->transnoentities("Order"));
|
$pdf->SetSubject($outputlangs->transnoentities("PdfOrderTitle"));
|
||||||
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
||||||
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
||||||
$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("Order")." ".$outputlangs->convToOutputCharset($object->thirdparty->name));
|
$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("PdfOrderTitle")." ".$outputlangs->convToOutputCharset($object->thirdparty->name));
|
||||||
if (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);
|
if (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);
|
||||||
|
|
||||||
$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right
|
$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right
|
||||||
@ -1201,7 +1201,7 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
* @param string $titlekey Translation key to show as title of document
|
* @param string $titlekey Translation key to show as title of document
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $titlekey="Order")
|
function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $titlekey="PdfOrderTitle")
|
||||||
{
|
{
|
||||||
global $conf,$langs,$hookmanager;
|
global $conf,$langs,$hookmanager;
|
||||||
|
|
||||||
|
|||||||
@ -284,10 +284,10 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetDrawColor(128,128,128);
|
$pdf->SetDrawColor(128,128,128);
|
||||||
|
|
||||||
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
|
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
|
||||||
$pdf->SetSubject($outputlangs->transnoentities("Invoice"));
|
$pdf->SetSubject($outputlangs->transnoentities("PdfInvoiceTitle"));
|
||||||
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
||||||
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
||||||
$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("Invoice")." ".$outputlangs->convToOutputCharset($object->thirdparty->name));
|
$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("PdfInvoiceTitle")." ".$outputlangs->convToOutputCharset($object->thirdparty->name));
|
||||||
if (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);
|
if (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);
|
||||||
|
|
||||||
$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right
|
$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right
|
||||||
@ -1559,7 +1559,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetFont('','B', $default_font_size + 3);
|
$pdf->SetFont('','B', $default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$title=$outputlangs->transnoentities("Invoice");
|
$title=$outputlangs->transnoentities("PdfInvoiceTitle");
|
||||||
if ($object->type == 1) $title=$outputlangs->transnoentities("InvoiceReplacement");
|
if ($object->type == 1) $title=$outputlangs->transnoentities("InvoiceReplacement");
|
||||||
if ($object->type == 2) $title=$outputlangs->transnoentities("InvoiceAvoir");
|
if ($object->type == 2) $title=$outputlangs->transnoentities("InvoiceAvoir");
|
||||||
if ($object->type == 3) $title=$outputlangs->transnoentities("InvoiceDeposit");
|
if ($object->type == 3) $title=$outputlangs->transnoentities("InvoiceDeposit");
|
||||||
|
|||||||
@ -292,10 +292,10 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$pdf->SetDrawColor(128,128,128);
|
$pdf->SetDrawColor(128,128,128);
|
||||||
|
|
||||||
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
|
$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
|
||||||
$pdf->SetSubject($outputlangs->transnoentities("CommercialProposal"));
|
$pdf->SetSubject($outputlangs->transnoentities("PdfCommercialProposalTitle"));
|
||||||
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
||||||
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
|
||||||
$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("CommercialProposal")." ".$outputlangs->convToOutputCharset($object->thirdparty->name));
|
$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("PdfCommercialProposalTitle")." ".$outputlangs->convToOutputCharset($object->thirdparty->name));
|
||||||
if (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);
|
if (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);
|
||||||
|
|
||||||
$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right
|
$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right
|
||||||
@ -1428,7 +1428,7 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$pdf->SetFont('','B',$default_font_size + 3);
|
$pdf->SetFont('','B',$default_font_size + 3);
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$title=$outputlangs->transnoentities("CommercialProposal");
|
$title=$outputlangs->transnoentities("PdfCommercialProposalTitle");
|
||||||
$pdf->MultiCell(100, 4, $title, '', 'R');
|
$pdf->MultiCell(100, 4, $title, '', 'R');
|
||||||
|
|
||||||
$pdf->SetFont('','B',$default_font_size);
|
$pdf->SetFont('','B',$default_font_size);
|
||||||
|
|||||||
@ -45,6 +45,7 @@ InvoiceHasAvoir=Was source of one or several credit notes
|
|||||||
CardBill=Invoice card
|
CardBill=Invoice card
|
||||||
PredefinedInvoices=Predefined Invoices
|
PredefinedInvoices=Predefined Invoices
|
||||||
Invoice=Invoice
|
Invoice=Invoice
|
||||||
|
PdfInvoiceTitle=Invoice
|
||||||
Invoices=Invoices
|
Invoices=Invoices
|
||||||
InvoiceLine=Invoice line
|
InvoiceLine=Invoice line
|
||||||
InvoiceCustomer=Customer invoice
|
InvoiceCustomer=Customer invoice
|
||||||
|
|||||||
@ -4,6 +4,7 @@ SuppliersOrdersArea=Suppliers orders area
|
|||||||
OrderCard=Order card
|
OrderCard=Order card
|
||||||
OrderId=Order Id
|
OrderId=Order Id
|
||||||
Order=Order
|
Order=Order
|
||||||
|
PdfOrderTitle=Order
|
||||||
Orders=Orders
|
Orders=Orders
|
||||||
OrderLine=Order line
|
OrderLine=Order line
|
||||||
OrderDate=Order date
|
OrderDate=Order date
|
||||||
|
|||||||
@ -6,6 +6,7 @@ ProposalsDraft=Draft commercial proposals
|
|||||||
ProposalsOpened=Open commercial proposals
|
ProposalsOpened=Open commercial proposals
|
||||||
Prop=Commercial proposals
|
Prop=Commercial proposals
|
||||||
CommercialProposal=Commercial proposal
|
CommercialProposal=Commercial proposal
|
||||||
|
PdfCommercialProposalTitle=Commercial proposal
|
||||||
ProposalCard=Proposal card
|
ProposalCard=Proposal card
|
||||||
NewProp=New commercial proposal
|
NewProp=New commercial proposal
|
||||||
NewPropal=New proposal
|
NewPropal=New proposal
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user