From b9dc98eefc9d5ad0d9f024dc8c22c6e7d15e12dc Mon Sep 17 00:00:00 2001 From: dinamiko Date: Tue, 10 May 2022 12:42:41 +0200 Subject: [PATCH] Make pui error translatable --- .../src/Gateway/PayUponInvoice/PayUponInvoice.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php index 351db02a6..d10c5b92e 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php @@ -335,7 +335,10 @@ class PayUponInvoice { exit; } - echo '

Could not enable gateway because Pay upon invoice is not active on PayPal.

'; + printf( + '

%1$s

', + esc_html__( 'Could not enable gateway because Pay upon invoice is not active on PayPal.', 'woocommerce-paypal-payments' ) + ); } } );