From d43a3ac65e5458178a2e60f28e1f0be8da225da3 Mon Sep 17 00:00:00 2001 From: Robin Klaus Date: Mon, 20 Jul 2020 13:06:20 +1000 Subject: [PATCH 1/2] Added translation key to locale/en.yml for backoffice admin payment and added lazy loading --- app/views/spree/admin/payments/source_forms/_paypal.html.haml | 2 +- config/locales/en.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/payments/source_forms/_paypal.html.haml b/app/views/spree/admin/payments/source_forms/_paypal.html.haml index e26db66846..124139dae0 100644 --- a/app/views/spree/admin/payments/source_forms/_paypal.html.haml +++ b/app/views/spree/admin/payments/source_forms/_paypal.html.haml @@ -5,4 +5,4 @@ -# of the views we are using, so the warning below wasn't displaying without this override. #paypal-warning - %strong= t('no_payment_via_admin_backend', :scope => 'paypal') + %strong= t('.no_payment_via_admin_backend', :scope => 'paypal') diff --git a/config/locales/en.yml b/config/locales/en.yml index 3726167337..668d94322d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3331,6 +3331,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using stripe: error_saving_payment: Error saving payment submitting_payment: Submitting payment... + paypal: + no_payment_via_admin_backend: No Payment Via Admin Backend products: image_upload_error: "The product image was not recognised. Please upload an image in PNG or JPG format." new: From 4375a34ef825cf134ff9c88147aba05a504af6d6 Mon Sep 17 00:00:00 2001 From: Robin Klaus Date: Wed, 29 Jul 2020 10:18:25 +1000 Subject: [PATCH 2/2] Updated message to Paypal payments cannot be captured in the Backoffice --- config/locales/en.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 668d94322d..0f7020857e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3332,7 +3332,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using error_saving_payment: Error saving payment submitting_payment: Submitting payment... paypal: - no_payment_via_admin_backend: No Payment Via Admin Backend + no_payment_via_admin_backend: Paypal payments cannot be captured in the Backoffice products: image_upload_error: "The product image was not recognised. Please upload an image in PNG or JPG format." new: