FIX warning for too many %s

This commit is contained in:
ldestailleur
2025-07-23 14:48:32 +02:00
parent 3844c65e89
commit 2aa30381c6

View File

@@ -650,8 +650,8 @@ if ($mode == 'searchkey') {
}
print '<span title="'.dolPrintHTMLForAttribute($titleforvalue).'" class="classfortooltip">';
print dolPrintHTML($val);
if (substr_count($langsenfileonly->tab_translate[$key], '%s') > 4) {
print '<br><div class="warning">Error, more than 4 %s in the source</div>';
if (substr_count($langsenfileonly->tab_translate[$key], '%s') > 5) {
print '<br><div class="warning">Error, more than 5 %s in the source</div>';
}
print '</span>';
print '</td>';