| @@ -413,9 +413,10 @@ | ||
| 413 | 413 | public function logStatusChange(int $quote_id, string $old_status, string $new_status, array $additional_data = []): bool { |
| 414 | 414 | return $this->logActivity( |
| 415 | 415 | $quote_id, |
| 416 | 416 | 'status_changed', |
| 417 | - sprintf(__('Status changed from %s to %s', 'easy-invoice'), $old_status, $new_status), | |
| 417 | + /* translators: %1$s: previous status; %2$s: new status. */ | |
| 418 | + sprintf(__('Status changed from %1$s to %2$s', 'easy-invoice'), $old_status, $new_status), | |
| 418 | 419 | array_merge([ |
| 419 | 420 | 'old_status' => $old_status, |
| 420 | 421 | 'new_status' => $new_status |
| 421 | 422 | ], $additional_data) |
| @@ -434,8 +435,9 @@ | ||
| 434 | 435 | public function logConversionToInvoice(int $quote_id, int $invoice_id, array $additional_data = []): bool { |
| 435 | 436 | return $this->logActivity( |
| 436 | 437 | $quote_id, |
| 437 | 438 | 'converted_to_invoice', |
| 439 | + /* translators: %d: invoice id. */ | |
| 438 | 440 | sprintf(__('Quote converted to invoice #%d', 'easy-invoice'), $invoice_id), |
| 439 | 441 | array_merge(['invoice_id' => $invoice_id], $additional_data) |
| 440 | 442 | ); |
| 441 | 443 | } |
| @@ -452,8 +454,9 @@ | ||
| 452 | 454 | public function logDuplicationToInvoice(int $quote_id, int $invoice_id, array $additional_data = []): bool { |
| 453 | 455 | return $this->logActivity( |
| 454 | 456 | $quote_id, |
| 455 | 457 | 'duplicated_to_invoice', |
| 458 | + /* translators: %d: invoice id. */ | |
| 456 | 459 | sprintf(__('Quote duplicated to invoice #%d', 'easy-invoice'), $invoice_id), |
| 457 | 460 | array_merge(['invoice_id' => $invoice_id], $additional_data) |
| 458 | 461 | ); |
| 459 | 462 | } |