From d5c41b93ccea11c5dbb294ff50a9287a43bf25bd Mon Sep 17 00:00:00 2001 From: smueller Date: Wed, 16 Mar 2022 08:45:21 +0100 Subject: [PATCH] SW-354: added some missing translations --- .../Controllers/Frontend/MoptPaymentPayone.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Frontend/MoptPaymentPayone/Controllers/Frontend/MoptPaymentPayone.php b/Frontend/MoptPaymentPayone/Controllers/Frontend/MoptPaymentPayone.php index a50889e5..d2a52153 100755 --- a/Frontend/MoptPaymentPayone/Controllers/Frontend/MoptPaymentPayone.php +++ b/Frontend/MoptPaymentPayone/Controllers/Frontend/MoptPaymentPayone.php @@ -752,10 +752,12 @@ public function failureAction() { $session = Shopware()->Session(); $errorMessage = Shopware()->Snippets()->getNamespace('frontend/MoptPaymentPayone/errorMessages')->get('generalErrorMessage', 'Es ist ein Fehler aufgetreten'); + $errorInfoMessage = Shopware()->Snippets()->getNamespace('frontend/MoptPaymentPayone/payment')->get('PaymentErrorInfo', 'Bitte kontaktieren Sie den Shopbetreiber.'); + $failInfoMessage = Shopware()->Snippets()->getNamespace('frontend/MoptPaymentPayone/payment')->get('PaymentFailInfo', 'Bitte versuchen Sie es mit einer anderen Zahlungsart nochmal.'); $session->payoneErrorMessage = $errorMessage; $session->otherErrorMessages = array( - 'contactShopOwner' => 'Bitte kontaktieren Sie den Shopbetreiber.', - 'otherPaymentMethod' => 'Bitte versuchen Sie es mit einer anderen Zahlungsart nochmal.' + 'contactShopOwner' => $errorInfoMessage, + 'otherPaymentMethod' => $failInfoMessage ); $this->forward('error'); }