diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 7565ddc1dee..44097c84f49 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -4104,7 +4104,7 @@ if ($action == 'create')
if ($objectidnext > 0) {
$facthatreplace = new Facture($db);
$facthatreplace->fetch($objectidnext);
- print ' ('.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1)).')';
+ print ' ('.str_replace('{s1}', $facthatreplace->getNomUrl(1), $langs->transnoentities("ReplacedByInvoice", '{s1}')).')';
}
if ($object->type == Facture::TYPE_CREDIT_NOTE || $object->type == Facture::TYPE_DEPOSIT) {
@@ -4112,7 +4112,10 @@ if ($action == 'create')
$result = $discount->fetch(0, $object->id);
if ($result > 0) {
print ' ';
- print $langs->transnoentities("CreditNoteConvertedIntoDiscount", $object->getLibType(1), $discount->getNomUrl(1, 'discount'));
+ $s = $langs->trans("CreditNoteConvertedIntoDiscount", '{s1}', '{s2}');
+ $s = str_replace('{s1}', $object->getLibType(1), $s);
+ $s = str_replace('{s2}', $discount->getNomUrl(1, 'discount'), $s);
+ print $s;
print '
';
}
}
@@ -4123,7 +4126,9 @@ if ($action == 'create')
$result = $tmptemplate->fetch($object->fk_fac_rec_source);
if ($result > 0) {
print ' ';
- print $langs->transnoentities("GeneratedFromTemplate", ''.dol_escape_htmltag($tmptemplate->ref).'');
+ $s = $langs->transnoentities("GeneratedFromTemplate", '{s1}');
+ $s = str_replace('{s1}', ''.dol_escape_htmltag($tmptemplate->ref).'', $s);
+ print $s;
print '';
}
}
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 15e82cd4529..63557b91e05 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2513,7 +2513,12 @@ if ($action == 'create')
$discount = new DiscountAbsolute($db);
$result = $discount->fetch(0, 0, $object->id);
if ($result > 0) {
- print ' '.$langs->trans("CreditNoteConvertedIntoDiscount", $object->getLibType(1), $discount->getNomUrl(1, 'discount')).'
';
+ print ' ';
+ $s = $langs->trans("CreditNoteConvertedIntoDiscount", '{s1}', '{s2}');
+ $s = str_replace('{s1}', $object->getLibType(1), $s);
+ $s = str_replace('{s2}', $discount->getNomUrl(1, 'discount'), $s);
+ print $s;
+ print '
';
}
}
print '';