From f13006d8fd706e2e0623b011a12c933d6e9a3b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sun, 15 Aug 2021 15:53:34 +0200 Subject: [PATCH] Update translations for frontend --- resources/lang/en/texts.php | 2 ++ .../ninja2020/gateways/eway/authorize.blade.php | 14 +++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 93c4aa28d0b0..fd246065ec73 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -4287,6 +4287,8 @@ $LANG = array( 'company_deleted' => 'Company deleted', 'company_deleted_body' => 'Company [ :company ] was deleted by :user', 'back_to' => 'Back to :url', + 'cardholder_name' => 'Card holder name', + ); return $LANG; diff --git a/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php b/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php index 848e0adb94cc..add65701a903 100644 --- a/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php @@ -2,7 +2,11 @@ ctrans('texts.credit_card')]) @section('gateway_head') - + + + + + @endsection @section('gateway_content') @@ -226,7 +230,7 @@ ctrans('texts.credit_card')]) styles: "margin-top: 15px;", label: { fieldColSpan: 4, - text: "Card Name:", + text: document.querySelector('meta[name=translation-card-name]')?.content, styles: "", }, field: { @@ -241,7 +245,7 @@ ctrans('texts.credit_card')]) styles: "margin-top: 15px;", label: { fieldColSpan: 4, - text: "Expiry:", + text: document.querySelector('meta[name=translation-expiry_date]')?.content, styles: "", }, field: { @@ -260,7 +264,7 @@ ctrans('texts.credit_card')]) styles: "margin-top: 15px;", label: { fieldColSpan: 4, - text: "Card Number:", + text: document.querySelector('meta[name=translation-card_number]')?.content, styles: "", }, field: { @@ -274,7 +278,7 @@ ctrans('texts.credit_card')]) styles: "margin-top: 15px;", label: { fieldColSpan: 4, - text: "CVV Number:", + text: document.querySelector('meta[name=translation-cvv]')?.content, styles: "", }, field: {