From 9bc4e88b1ab9383731d174116c0dd1838c2f4c17 Mon Sep 17 00:00:00 2001 From: Chi-Hsuan Huang Date: Wed, 20 Jul 2022 16:28:22 +0800 Subject: [PATCH] Wrap default payment gateway strings in __() function call (#33987) * Wrap default payment gateway strings in __() function call * Add changelog --- .../woocommerce/changelog/fix-untranslated-payment-strings | 4 ++++ .../PaymentGatewaySuggestions/DefaultPaymentGateways.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 plugins/woocommerce/changelog/fix-untranslated-payment-strings diff --git a/plugins/woocommerce/changelog/fix-untranslated-payment-strings b/plugins/woocommerce/changelog/fix-untranslated-payment-strings new file mode 100644 index 00000000000..85b9e049d6b --- /dev/null +++ b/plugins/woocommerce/changelog/fix-untranslated-payment-strings @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Wrap default payment gateway strings in __() function call diff --git a/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php b/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php index 49838fbae12..29030da0503 100644 --- a/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php +++ b/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php @@ -178,7 +178,7 @@ class DefaultPaymentGateways { 'image' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/wcpay.svg', 'image_72x72' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/wcpay.svg', 'plugins' => array( 'woocommerce-payments' ), - 'description' => 'With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies. Track cash flow and manage recurring revenue directly from your store’s dashboard - with no setup costs or monthly fees.', + 'description' => __( 'With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies. Track cash flow and manage recurring revenue directly from your store’s dashboard - with no setup costs or monthly fees.', 'woocommerce' ), 'is_visible' => array( self::get_rules_for_cbd( false ), self::get_rules_for_countries( self::get_wcpay_countries() ), @@ -221,7 +221,7 @@ class DefaultPaymentGateways { 'image' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/wcpay.svg', 'image_72x72' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/wcpay.svg', 'plugins' => array( 'woocommerce-payments' ), - 'description' => 'With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies. Track cash flow and manage recurring revenue directly from your store’s dashboard - with no setup costs or monthly fees.', + 'description' => __( 'With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies. Track cash flow and manage recurring revenue directly from your store’s dashboard - with no setup costs or monthly fees.', 'woocommerce' ), 'is_visible' => array( self::get_rules_for_cbd( false ), self::get_rules_for_countries( array_diff( self::get_wcpay_countries(), array( 'US', 'CA' ) ) ), @@ -257,7 +257,7 @@ class DefaultPaymentGateways { 'image' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/wcpay.svg', 'image_72x72' => WC_ADMIN_IMAGES_FOLDER_URL . '/onboarding/wcpay.svg', 'plugins' => array( 'woocommerce-payments' ), - 'description' => 'With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies – with no setup costs or monthly fees – and you can now accept in-person payments with the Woo mobile app.', + 'description' => __( 'With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies – with no setup costs or monthly fees – and you can now accept in-person payments with the Woo mobile app.', 'woocommerce' ), 'is_visible' => array( self::get_rules_for_cbd( false ), self::get_rules_for_countries( array( 'US', 'CA' ) ),