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é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é en HTML
// MultiCell -> ne doit pas etre encodé 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é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é en HTML
// MultiCell -> ne doit pas etre encodé 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é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é en HTML
// MultiCell -> ne doit pas etre encodé 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

@ -73,4 +73,8 @@ DateDelivery=Shipping date
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)
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é commandée
AddDeliveryCostLine=Ajouter une ligne de frais port indiquant le poids de la commande
# einstein PDF Model
PDFEinsteinDescription=Modèle de propositions commerciales complet (logo...)

View File

@ -73,4 +73,7 @@ DateDelivery=Date de livraison
SetDateLivraison=Définir la date de livraison
CopyPropalFrom=Créer proposition/devis par recopie d'un proposition existante
CreateEmptyPropal=Créer proposition/devis vierge ou depuis liste de produits prédéfinis
DefaultProposalDurationValidity=Délai de validité par défaut (en jours)
DefaultProposalDurationValidity=Délai de validité par défaut (en jours)
# azur PDF Model
PDFAzurDescription=Modèle de propositions commerciales complet (logo...)

View File

@ -2370,4 +2370,17 @@ function hexbin($hexa){
return $bin;
}
// Cette fonction est appelé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é en HTML
// MultiCell -> ne doit pas etre encodé en HTML
function _dol_htmlentities($stringtoencode,$isstringalreadyhtml)
{
global $conf;
if ($isstringalreadyhtml) return $stringtoencode;
if ($conf->fckeditor->enabled) return htmlentities($stringtoencode);
return $stringtoencode;
}
?>