From fb74420ae5266b04a451aff4d69c3b770a37abff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 12 Oct 2021 16:14:49 +0200 Subject: [PATCH] Translate 'invoices' for Mollie descriptions --- app/PaymentDrivers/Mollie/Bancontact.php | 2 +- app/PaymentDrivers/Mollie/BankTransfer.php | 2 +- app/PaymentDrivers/Mollie/IDEAL.php | 2 +- app/PaymentDrivers/Mollie/KBC.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/PaymentDrivers/Mollie/Bancontact.php b/app/PaymentDrivers/Mollie/Bancontact.php index 7831ce3558a5..ee2b3e2bd2da 100644 --- a/app/PaymentDrivers/Mollie/Bancontact.php +++ b/app/PaymentDrivers/Mollie/Bancontact.php @@ -78,7 +78,7 @@ class Bancontact implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash, diff --git a/app/PaymentDrivers/Mollie/BankTransfer.php b/app/PaymentDrivers/Mollie/BankTransfer.php index c11bbbecfc48..1cfb0651d13f 100644 --- a/app/PaymentDrivers/Mollie/BankTransfer.php +++ b/app/PaymentDrivers/Mollie/BankTransfer.php @@ -81,7 +81,7 @@ class BankTransfer implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash, diff --git a/app/PaymentDrivers/Mollie/IDEAL.php b/app/PaymentDrivers/Mollie/IDEAL.php index fdd617091dfe..a7c95f310211 100644 --- a/app/PaymentDrivers/Mollie/IDEAL.php +++ b/app/PaymentDrivers/Mollie/IDEAL.php @@ -78,7 +78,7 @@ class IDEAL implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash, diff --git a/app/PaymentDrivers/Mollie/KBC.php b/app/PaymentDrivers/Mollie/KBC.php index 2244c78c2456..bb2386c8b6e6 100644 --- a/app/PaymentDrivers/Mollie/KBC.php +++ b/app/PaymentDrivers/Mollie/KBC.php @@ -78,7 +78,7 @@ class KBC implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash,