Fix: trad

This commit is contained in:
Regis Houssin 2011-06-04 13:53:03 +00:00
parent d256175bef
commit 96f3f44457

View File

@ -342,7 +342,11 @@ foreach ($conf->file->dol_document_root as $dirroot)
// Show example of numbering module
print '<td nowrap="nowrap">';
$tmp=$module->getExample();
if (preg_match('/^Error/',$tmp)) print $langs->trans($tmp);
if (preg_match('/^Error/',$tmp))
{
$langs->load('errors');
print $langs->trans($tmp);
}
else print $tmp;
print '</td>'."\n";