Merge pull request #21639 from grandoc/new_branch_02_08_2022
add translation
This commit is contained in:
commit
409b0cc0d9
@ -284,7 +284,7 @@ class doc_generic_asset_odt extends ModelePDFAsset
|
|||||||
|
|
||||||
dol_mkdir($conf->asset->dir_temp);
|
dol_mkdir($conf->asset->dir_temp);
|
||||||
if (!is_writable($conf->asset->dir_temp)) {
|
if (!is_writable($conf->asset->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->asset->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->asset->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -183,11 +183,11 @@ class modPhpbarcode extends ModeleBarCode
|
|||||||
*/
|
*/
|
||||||
public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0)
|
public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0)
|
||||||
{
|
{
|
||||||
global $conf, $filebarcode;
|
global $conf, $filebarcode, $langs;
|
||||||
|
|
||||||
dol_mkdir($conf->barcode->dir_temp);
|
dol_mkdir($conf->barcode->dir_temp);
|
||||||
if (!is_writable($conf->barcode->dir_temp)) {
|
if (!is_writable($conf->barcode->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->barcode->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->barcode->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -155,11 +155,11 @@ class modTcpdfbarcode extends ModeleBarCode
|
|||||||
*/
|
*/
|
||||||
public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0)
|
public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0)
|
||||||
{
|
{
|
||||||
global $conf, $_GET;
|
global $conf, $langs, $_GET;
|
||||||
|
|
||||||
dol_mkdir($conf->barcode->dir_temp);
|
dol_mkdir($conf->barcode->dir_temp);
|
||||||
if (!is_writable($conf->barcode->dir_temp)) {
|
if (!is_writable($conf->barcode->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->barcode->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->barcode->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -295,7 +295,7 @@ class doc_generic_bom_odt extends ModelePDFBom
|
|||||||
|
|
||||||
dol_mkdir($conf->bom->dir_temp);
|
dol_mkdir($conf->bom->dir_temp);
|
||||||
if (!is_writable($conf->bom->dir_temp)) {
|
if (!is_writable($conf->bom->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->bom->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->bom->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -301,7 +301,7 @@ class doc_generic_order_odt extends ModelePDFCommandes
|
|||||||
|
|
||||||
dol_mkdir($conf->commande->dir_temp);
|
dol_mkdir($conf->commande->dir_temp);
|
||||||
if (!is_writable($conf->commande->dir_temp)) {
|
if (!is_writable($conf->commande->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->commande->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->commande->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -287,7 +287,7 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||||||
|
|
||||||
dol_mkdir($conf->contrat->dir_temp);
|
dol_mkdir($conf->contrat->dir_temp);
|
||||||
if (!is_writable($conf->contrat->dir_temp)) {
|
if (!is_writable($conf->contrat->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->contrat->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->contrat->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -299,7 +299,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|||||||
|
|
||||||
dol_mkdir($conf->expedition->dir_temp);
|
dol_mkdir($conf->expedition->dir_temp);
|
||||||
if (!is_writable($conf->expedition->dir_temp)) {
|
if (!is_writable($conf->expedition->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->expedition->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->expedition->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -300,7 +300,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
|
|
||||||
dol_mkdir($conf->facture->dir_temp);
|
dol_mkdir($conf->facture->dir_temp);
|
||||||
if (!is_writable($conf->facture->dir_temp)) {
|
if (!is_writable($conf->facture->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->facture->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->facture->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -289,7 +289,7 @@ class doc_generic_member_odt extends ModelePDFMember
|
|||||||
|
|
||||||
dol_mkdir($conf->adherent->dir_temp);
|
dol_mkdir($conf->adherent->dir_temp);
|
||||||
if (!is_writable($conf->adherent->dir_temp)) {
|
if (!is_writable($conf->adherent->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->adherent->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->adherent->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -288,7 +288,7 @@ class doc_generic_mo_odt extends ModelePDFMo
|
|||||||
|
|
||||||
dol_mkdir($conf->mrp->dir_temp);
|
dol_mkdir($conf->mrp->dir_temp);
|
||||||
if (!is_writable($conf->mrp->dir_temp)) {
|
if (!is_writable($conf->mrp->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->mrp->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->mrp->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -299,7 +299,7 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
|
|
||||||
dol_mkdir($conf->product->dir_temp);
|
dol_mkdir($conf->product->dir_temp);
|
||||||
if (!is_writable($conf->product->dir_temp)) {
|
if (!is_writable($conf->product->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->product->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->product->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -577,7 +577,7 @@ class doc_generic_project_odt extends ModelePDFProjects
|
|||||||
|
|
||||||
dol_mkdir($conf->project->dir_temp);
|
dol_mkdir($conf->project->dir_temp);
|
||||||
if (!is_writable($conf->project->dir_temp)) {
|
if (!is_writable($conf->project->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->project->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->project->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -527,7 +527,7 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||||||
|
|
||||||
dol_mkdir($conf->project->dir_temp);
|
dol_mkdir($conf->project->dir_temp);
|
||||||
if (!is_writable($conf->project->dir_temp)) {
|
if (!is_writable($conf->project->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->project->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->project->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -332,7 +332,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||||||
|
|
||||||
dol_mkdir($conf->propal->multidir_temp[$object->entity]);
|
dol_mkdir($conf->propal->multidir_temp[$object->entity]);
|
||||||
if (!is_writable($conf->propal->dir_temp)) {
|
if (!is_writable($conf->propal->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->propal->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->propal->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -292,7 +292,7 @@ class doc_generic_reception_odt extends ModelePdfReception
|
|||||||
|
|
||||||
dol_mkdir($conf->reception->dir_temp);
|
dol_mkdir($conf->reception->dir_temp);
|
||||||
if (!is_writable($conf->reception->dir_temp)) {
|
if (!is_writable($conf->reception->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->reception->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->reception->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -279,7 +279,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
|
|
||||||
dol_mkdir($conf->societe->multidir_temp[$object->entity]);
|
dol_mkdir($conf->societe->multidir_temp[$object->entity]);
|
||||||
if (!is_writable($conf->societe->multidir_temp[$object->entity])) {
|
if (!is_writable($conf->societe->multidir_temp[$object->entity])) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->societe->multidir_temp[$object->entity];
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->societe->multidir_temp[$object->entity]);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -300,7 +300,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
|
|
||||||
dol_mkdir($conf->product->dir_temp);
|
dol_mkdir($conf->product->dir_temp);
|
||||||
if (!is_writable($conf->product->dir_temp)) {
|
if (!is_writable($conf->product->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->product->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->product->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -283,7 +283,7 @@ class doc_generic_supplier_order_odt extends ModelePDFSuppliersOrders
|
|||||||
|
|
||||||
dol_mkdir($conf->fournisseur->commande->dir_temp);
|
dol_mkdir($conf->fournisseur->commande->dir_temp);
|
||||||
if (!is_writable($conf->fournisseur->commande->dir_temp)) {
|
if (!is_writable($conf->fournisseur->commande->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->fournisseur->commande->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->fournisseur->commande->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -318,7 +318,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
|
|
||||||
dol_mkdir($conf->supplier_proposal->dir_temp);
|
dol_mkdir($conf->supplier_proposal->dir_temp);
|
||||||
if (!is_writable($conf->supplier_proposal->dir_temp)) {
|
if (!is_writable($conf->supplier_proposal->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->supplier_proposal->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->supplier_proposal->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -287,7 +287,7 @@ class doc_generic_ticket_odt extends ModelePDFTicket
|
|||||||
|
|
||||||
dol_mkdir($conf->ticket->dir_temp);
|
dol_mkdir($conf->ticket->dir_temp);
|
||||||
if (!is_writable($conf->ticket->dir_temp)) {
|
if (!is_writable($conf->ticket->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->ticket->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->ticket->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -318,7 +318,7 @@ class doc_generic_user_odt extends ModelePDFUser
|
|||||||
|
|
||||||
dol_mkdir($conf->user->dir_temp);
|
dol_mkdir($conf->user->dir_temp);
|
||||||
if (!is_writable($conf->user->dir_temp)) {
|
if (!is_writable($conf->user->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->user->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->user->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -302,7 +302,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
|
|
||||||
dol_mkdir($conf->user->dir_temp);
|
dol_mkdir($conf->user->dir_temp);
|
||||||
if (!is_writable($conf->user->dir_temp)) {
|
if (!is_writable($conf->user->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->user->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->user->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -289,6 +289,7 @@ ErrorInvoiceLoadThirdPartyKey=Third-party key "%s" no set for invoice "%s"
|
|||||||
ErrorDeleteLineNotAllowedByObjectStatus=Delete line is not allowed by current object status
|
ErrorDeleteLineNotAllowedByObjectStatus=Delete line is not allowed by current object status
|
||||||
ErrorAjaxRequestFailed=Request failed
|
ErrorAjaxRequestFailed=Request failed
|
||||||
ErrorThirpdartyOrMemberidIsMandatory=Third party or Member of partnership is mandatory
|
ErrorThirpdartyOrMemberidIsMandatory=Third party or Member of partnership is mandatory
|
||||||
|
ErrorFailedToWriteInTempDirectory=Failed to write in temp directory
|
||||||
|
|
||||||
# Warnings
|
# Warnings
|
||||||
WarningParamUploadMaxFileSizeHigherThanPostMaxSize=Your PHP parameter upload_max_filesize (%s) is higher than PHP parameter post_max_size (%s). This is not a consistent setup.
|
WarningParamUploadMaxFileSizeHigherThanPostMaxSize=Your PHP parameter upload_max_filesize (%s) is higher than PHP parameter post_max_size (%s). This is not a consistent setup.
|
||||||
|
|||||||
@ -303,7 +303,7 @@ class doc_generic_myobject_odt extends ModelePDFMyObject
|
|||||||
|
|
||||||
dol_mkdir($conf->mymodule->dir_temp);
|
dol_mkdir($conf->mymodule->dir_temp);
|
||||||
if (!is_writable($conf->mymodule->dir_temp)) {
|
if (!is_writable($conf->mymodule->dir_temp)) {
|
||||||
$this->error = "Failed to write in temp directory ".$conf->mymodule->dir_temp;
|
$this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->mymodule->dir_temp);
|
||||||
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
dol_syslog('Error in write_file: ' . $this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user