2
0
forked from Wavyzz/dolibarr

FIX translation not loaded for error message of numbering modules

This commit is contained in:
Laurent Destailleur
2020-11-28 02:09:27 +01:00
parent 7c4599a5c5
commit 7e6af6a54f
25 changed files with 92 additions and 42 deletions

View File

@@ -310,8 +310,10 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Show example of numbering model
print '<td class="nowrap">';
$tmp = $module->getExample();
if (preg_match('/^Error/', $tmp)) print '<div class="error">'.$langs->trans($tmp).'</div>';
elseif ($tmp == 'NotConfigured') print $langs->trans($tmp);
if (preg_match('/^Error/', $tmp)) {
$langs->load("errors");
print '<div class="error">'.$langs->trans($tmp).'</div>';
} elseif ($tmp == 'NotConfigured') print $langs->trans($tmp);
else print $tmp;
print '</td>'."\n";