diff --git a/htdocs/document.php b/htdocs/document.php index 1554e3da5dc..9cf9034d7bb 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -326,7 +326,7 @@ $fullpath_original_file_osencoded = dol_osencode($fullpath_original_file); // Ne // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { dol_syslog("ErrorFileDoesNotExists: ".$fullpath_original_file); - print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); + print $langs->trans("ErrorFileDoesNotExists") . ' : ' . dol_escape_htmltag($original_file); exit; }