1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Added translation for payment issues

This commit is contained in:
Lars Kusch 2021-10-15 15:52:51 +02:00
parent cf3f6dc84a
commit 23ec133be9
14 changed files with 31 additions and 12 deletions

View File

@ -30,14 +30,14 @@ class ProcessACSS {
if (document.getElementById('acss-name').value === "") {
document.getElementById('acss-name').focus();
errors.textContent = "Name required.";
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
errors.hidden = false;
return;
}
if (document.getElementById('acss-email-address').value === "") {
document.getElementById('acss-email-address').focus();
errors.textContent = "Email required.";
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
errors.hidden = false;
return ;
}

View File

@ -28,7 +28,7 @@ class ProcessBANCONTACTPay {
let errors = document.getElementById('errors');
if (!document.getElementById('bancontact-name').value) {
errors.textContent = "Enter name";
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
errors.hidden = false;
console.log("name");
return ;

View File

@ -59,14 +59,14 @@ class ProcessBECS {
if (document.getElementById('becs-name').value === "") {
document.getElementById('becs-name').focus();
errors.textContent = "Name required.";
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
errors.hidden = false;
return;
}
if (document.getElementById('becs-email-address').value === "") {
document.getElementById('becs-email-address').focus();
errors.textContent = "Email required.";
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
errors.hidden = false;
return ;
}
@ -74,7 +74,7 @@ class ProcessBECS {
if (!document.getElementById('becs-mandate-acceptance').checked) {
document.getElementById('becs-mandate-acceptance').focus();
errors.textContent = "Accept Terms";
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
errors.hidden = false;
console.log("Terms");
return ;

View File

@ -43,7 +43,7 @@ class ProcessEPSPay {
let errors = document.getElementById('errors');
if (!document.getElementById('eps-name').value) {
errors.textContent = "Enter name";
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
errors.hidden = false;
console.log("name");
return ;

View File

@ -29,7 +29,7 @@ class ProcessGiroPay {
let errors = document.getElementById('errors');
if (!document.getElementById('giropay-mandate-acceptance').checked) {
errors.textContent = "Accept Terms";
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
errors.hidden = false;
console.log("Terms");
return ;

View File

@ -43,7 +43,7 @@ class ProcessIDEALPay {
let errors = document.getElementById('errors');
if (!document.getElementById('ideal-name').value) {
errors.textContent = "Enter name";
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
errors.hidden = false;
console.log("name");
return ;

View File

@ -45,19 +45,19 @@ class ProcessPRZELEWY24 {
if (document.getElementById('p24-name').value === "") {
document.getElementById('p24-name').focus();
errors.textContent = "Name required.";
errors.textContent = document.querySelector('meta[name=translation-name-required]').content;
errors.hidden = false;
return;
}
if (document.getElementById('p24-email-address').value === "") {
document.getElementById('p24-email-address').focus();
errors.textContent = "Email required.";
errors.textContent = document.querySelector('meta[name=translation-email-required]').content;
errors.hidden = false;
return;
}
if (!document.getElementById('p24-mandate-acceptance').checked) {
document.getElementById('p24-mandate-acceptance').focus();
errors.textContent = "Accept Terms.";
errors.textContent = document.querySelector('meta[name=translation-terms-required]').content;
errors.hidden = false;
return;
}

View File

@ -8,6 +8,9 @@
<meta name="country" content="{{ $country }}">
<meta name="customer" content="{{ $customer }}">
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
<meta name="translation-email-required" content="{{ ctrans('texts.provide_email') }}">
@endsection
@section('gateway_content')

View File

@ -8,6 +8,8 @@
<meta name="country" content="{{ $country }}">
<meta name="customer" content="{{ $customer }}">
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
@endsection
@section('gateway_content')

View File

@ -7,6 +7,10 @@
<meta name="country" content="{{ $country }}">
<meta name="customer" content="{{ $customer }}">
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
<meta name="translation-email-required" content="{{ ctrans('texts.provide_email') }}">
<meta name="translation-terms-required" content="{{ ctrans('texts.you_need_to_accept_the_terms_before_proceeding') }}">
@endsection
@section('gateway_content')

View File

@ -8,6 +8,8 @@
<meta name="country" content="{{ $country }}">
<meta name="customer" content="{{ $customer }}">
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
@endsection
@section('gateway_content')

View File

@ -8,6 +8,8 @@
<meta name="country" content="{{ $country }}">
<meta name="customer" content="{{ $customer }}">
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
<meta name="translation-terms-required" content="{{ ctrans('texts.you_need_to_accept_the_terms_before_proceeding') }}">
@endsection
@section('gateway_content')

View File

@ -8,6 +8,8 @@
<meta name="country" content="{{ $country }}">
<meta name="customer" content="{{ $customer }}">
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
@endsection
@section('gateway_content')

View File

@ -8,6 +8,10 @@
<meta name="return-url" content="{{ $return_url }}">
<meta name="customer" content="{{ $customer }}">
<meta name="pi-client-secret" content="{{ $pi_client_secret }}">
<meta name="translation-name-required" content="{{ ctrans('texts.missing_account_holder_name') }}">
<meta name="translation-email-required" content="{{ ctrans('texts.provide_email') }}">
<meta name="translation-terms-required" content="{{ ctrans('texts.you_need_to_accept_the_terms_before_proceeding') }}">
@endsection
@section('gateway_content')