add translation
This commit is contained in:
parent
238768a5d0
commit
bdeb48ba8d
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user