Update translation template and fix incorrect use of ts()

This commit is contained in:
Jens Schuppe 2024-09-11 13:30:39 +02:00
parent 2834f8028d
commit fa301676e3
5 changed files with 862 additions and 274 deletions

View file

@ -546,7 +546,7 @@ class CRM_Twingle_Submission {
if (!empty($line_item['is_error'])) {
$line_item_name = $line_item_data['name'];
throw new CiviCRM_API3_Exception(
E::ts("Could not create line item for product '$line_item_name'"),
E::ts("Could not create line item for product '%1'", [1 => $line_item_name]),
'api_error'
);
}