From 9b697ddaa2fc82d35f374d07a06fa091b9ec2da6 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Mon, 19 Jun 2023 08:12:32 +0200 Subject: [PATCH] Add currency to message line --- .../src/Notice/UnsupportedCurrencyAdminNotice.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-wc-gateway/src/Notice/UnsupportedCurrencyAdminNotice.php b/modules/ppcp-wc-gateway/src/Notice/UnsupportedCurrencyAdminNotice.php index 1f8b3b98f..3da5a3b6f 100644 --- a/modules/ppcp-wc-gateway/src/Notice/UnsupportedCurrencyAdminNotice.php +++ b/modules/ppcp-wc-gateway/src/Notice/UnsupportedCurrencyAdminNotice.php @@ -64,11 +64,12 @@ class UnsupportedCurrencyAdminNotice { } $message = sprintf( - /* translators: %1$s the gateway name. */ + /* translators: %1$s the shop currency, 2$s the gateway name. */ __( - 'Attention: Your current WooCommerce store currency is not supported by PayPal. Please update your store currency to one that is supported by PayPal to ensure smooth transactions. Visit the PayPal currency support page for more information on supported currencies.', + 'Attention: Your current WooCommerce store currency (%1$s) is not supported by PayPal. Please update your store currency to one that is supported by PayPal to ensure smooth transactions. Visit the PayPal currency support page for more information on supported currencies.', 'woocommerce-paypal-payments' ), + $this->shop_currency, 'https://developer.paypal.com/api/rest/reference/currency-codes/' ); return new Message( $message, 'warning' );