2
0
forked from Wavyzz/dolibarr

Ajout traduction des descriptions des modeles pdf

Dplacement de la fonction _dol_htmlentities() dans function.inc.php afin d'viter les erreur fatal lorsque plusieurs modles l'incluait
This commit is contained in:
Regis Houssin
2007-04-11 10:50:50 +00:00
parent 9e34dca725
commit 901b7ed754
8 changed files with 29 additions and 41 deletions

View File

@@ -956,17 +956,4 @@ class pdf_einstein extends ModelePDFCommandes
}
// Cette fonction est appel<65>e pour coder ou non une chaine en html
// selon qu'on compte l'afficher dans le PDF avec:
// writeHTMLCell -> a besoin d'etre encod<6F> en HTML
// MultiCell -> ne doit pas etre encod<6F> en HTML
function _dol_htmlentities($stringtoencode,$isstringalreadyhtml)
{
global $conf;
if ($isstringalreadyhtml) return $stringtoencode;
if ($conf->fckeditor->enabled) return htmlentities($stringtoencode);
return $stringtoencode;
}
?>

View File

@@ -1087,17 +1087,4 @@ class pdf_crabe extends ModelePDFFactures
}
// Cette fonction est appel<65>e pour coder ou non une chaine en html
// selon qu'on compte l'afficher dans le PDF avec:
// writeHTMLCell -> a besoin d'etre encod<6F> en HTML
// MultiCell -> ne doit pas etre encod<6F> en HTML
function _dol_htmlentities($stringtoencode,$isstringalreadyhtml)
{
global $conf;
if ($isstringalreadyhtml) return $stringtoencode;
if ($conf->fckeditor->enabled) return htmlentities($stringtoencode);
return $stringtoencode;
}
?>

View File

@@ -966,17 +966,4 @@ class pdf_propale_azur extends ModelePDFPropales
}
// Cette fonction est appel<65>e pour coder ou non une chaine en html
// selon qu'on compte l'afficher dans le PDF avec:
// writeHTMLCell -> a besoin d'etre encod<6F> en HTML
// MultiCell -> ne doit pas etre encod<6F> en HTML
function _dol_htmlentities($stringtoencode,$isstringalreadyhtml)
{
global $conf;
if ($isstringalreadyhtml) return $stringtoencode;
if ($conf->fckeditor->enabled) return htmlentities($stringtoencode);
return $stringtoencode;
}
?>

View File

@@ -104,3 +104,7 @@ OrderSource5=Commercial
OrderSource6=Store
QtyOrdered=Qty ordered
AddDeliveryCostLine=Add a delivery cost line indicating the weight of the order
# einstein PDF Model
PDFEinsteinDescription=A complete order model (logo...)

View File

@@ -74,3 +74,7 @@ SetDateLivraison=Set shipping date
CopyPropalFrom=Create commercial proposal by copying existing proposal
CreateEmptyPropal=Create empty commercial proposals vierge or from list of products/services
DefaultProposalDurationValidity=Default commercial proposal validity duration (in days)
# azur PDF Model
PDFAzurDescription=A complete proposal model (logo...)

View File

@@ -104,3 +104,6 @@ OrderSource5=Commercial
OrderSource6=Magasin
QtyOrdered=Qt<51> command<6E>e
AddDeliveryCostLine=Ajouter une ligne de frais port indiquant le poids de la commande
# einstein PDF Model
PDFEinsteinDescription=Mod<6F>le de propositions commerciales complet (logo...)

View File

@@ -74,3 +74,6 @@ SetDateLivraison=D
CopyPropalFrom=Cr<43>er proposition/devis par recopie d'un proposition existante
CreateEmptyPropal=Cr<43>er proposition/devis vierge ou depuis liste de produits pr<70>d<EFBFBD>finis
DefaultProposalDurationValidity=D<>lai de validit<69> par d<>faut (en jours)
# azur PDF Model
PDFAzurDescription=Mod<6F>le de propositions commerciales complet (logo...)

View File

@@ -2370,4 +2370,17 @@ function hexbin($hexa){
return $bin;
}
// Cette fonction est appel<65>e pour coder ou non une chaine en html
// selon qu'on compte l'afficher dans le PDF avec:
// writeHTMLCell -> a besoin d'etre encod<6F> en HTML
// MultiCell -> ne doit pas etre encod<6F> en HTML
function _dol_htmlentities($stringtoencode,$isstringalreadyhtml)
{
global $conf;
if ($isstringalreadyhtml) return $stringtoencode;
if ($conf->fckeditor->enabled) return htmlentities($stringtoencode);
return $stringtoencode;
}
?>