From 4ab071552796d78981dbf84e5fd1506f093f5797 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Fri, 28 Oct 2022 15:46:40 +0200 Subject: [PATCH] Update plugin strings --- .../connection-tab-settings.php | 22 +++-- modules/ppcp-wc-gateway/services.php | 82 +++++++++++++++---- modules/ppcp-webhooks/extensions.php | 7 +- 3 files changed, 86 insertions(+), 25 deletions(-) diff --git a/modules/ppcp-wc-gateway/connection-tab-settings.php b/modules/ppcp-wc-gateway/connection-tab-settings.php index c65814dad..8ec28d23e 100644 --- a/modules/ppcp-wc-gateway/connection-tab-settings.php +++ b/modules/ppcp-wc-gateway/connection-tab-settings.php @@ -347,14 +347,19 @@ return function ( ContainerInterface $container, array $fields ): array { ), 'credentials_feature_onboarding_heading' => array( - 'heading' => __( 'Feature Onboarding', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Advanced feature availability & sign-up', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_ONBOARDED, ), 'requirements' => array(), 'gateway' => Settings::CONNECTION_TAB_ID, - 'description' => __( 'See which features are available.', 'woocommerce-paypal-payments' ), + 'description' => sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Displays whether available advanced features are enabled for the connected PayPal account. More information about advanced features is available in the %1$sFeature sign-up documentation%2$s.', 'woocommerce-paypal-payments' ), + '', + '' + ), ), 'ppcp_dcc_status' => array( 'title' => __( 'Advanced Credit and Debit Card Payments', 'woocommerce-paypal-payments' ), @@ -367,7 +372,7 @@ return function ( ContainerInterface $container, array $fields ): array { 'gateway' => Settings::CONNECTION_TAB_ID, ), 'ppcp_pui_status' => array( - 'title' => __( 'Pay Upon Invoice', 'woocommerce-paypal-payments' ), + 'title' => __( 'Pay upon Invoice', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-text', 'text' => $container->get( 'wcgateway.settings.connection.pui-status-text' ), 'screens' => array( @@ -377,7 +382,7 @@ return function ( ContainerInterface $container, array $fields ): array { 'gateway' => Settings::CONNECTION_TAB_ID, ), 'tracking_enabled' => array( - 'title' => __( 'Tracking', 'woocommerce-paypal-payments' ), + 'title' => __( 'Shipment Tracking', 'woocommerce-paypal-payments' ), 'type' => 'checkbox', 'desc_tip' => true, 'label' => $container->get( 'wcgateway.settings.tracking-label' ), @@ -392,14 +397,19 @@ return function ( ContainerInterface $container, array $fields ): array { ), 'credentials_integration_configuration_heading' => array( - 'heading' => __( 'Integration configuration', 'woocommerce-paypal-payments' ), + 'heading' => __( 'General integration configuration', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_ONBOARDED, ), 'requirements' => array(), 'gateway' => Settings::CONNECTION_TAB_ID, - 'description' => __( 'See which features are available.', 'woocommerce-paypal-payments' ), + 'description' => sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Configure integration specific settings such as a unique invoice prefix, or logging for potential %1$stroubleshooting%2$s.', 'woocommerce-paypal-payments' ), + '', + '' + ), ), 'prefix' => array( 'title' => __( 'Invoice prefix', 'woocommerce-paypal-payments' ), diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 1e4d2bc78..e9c9370b8 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -668,7 +668,7 @@ return array( // General button styles. 'button_style_heading' => array( - 'heading' => __( 'Checkout', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Checkout Buttons', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_START, @@ -676,7 +676,12 @@ return array( ), 'requirements' => array(), 'gateway' => 'paypal', - 'description' => __( 'Customize the appearance of Standard Payments on the checkout page.', 'woocommerce-paypal-payments' ), + 'description' => sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Customize the appearance of the PayPal smart buttons on the %1$sCheckout page%2$s.', 'woocommerce-paypal-payments' ), + '', + '' + ), ), 'button_enabled' => array( 'title' => __( 'Enable buttons on Checkout', 'woocommerce-paypal-payments' ), @@ -803,7 +808,7 @@ return array( 'gateway' => 'paypal', ), 'message_heading' => array( - 'heading' => __( 'Pay Later on Checkout', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Pay Later messaging on Checkout', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_START, @@ -811,7 +816,14 @@ return array( ), 'requirements' => array( 'messages' ), 'gateway' => 'paypal', - 'description' => str_replace( '', '', __( 'Displays Pay Later messaging for available offers. Restrictions apply. Click here to learn more. Pay Later button will show for eligible buyers and PayPal determines eligibility.', 'woocommerce-paypal-payments' ) ), + 'description' => sprintf( + // translators: %1$s, %2$s, %3$s and %4$s are the opening and closing of HTML tag. + __( 'Displays Pay Later messaging on the Checkout page for available offers. Restrictions apply. %1$sClick here to learn more%2$s. This setting does not %3$sdisable the Pay Later button%4$s which will show for eligible buyers.', 'woocommerce-paypal-payments' ), + '', + '', + '', + '' + ), 'class' => array( 'ppcp-subheading' ), ), 'message_enabled' => array( @@ -973,7 +985,7 @@ return array( // Single product page. 'button_product_heading' => array( - 'heading' => __( 'Single Product Page', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Single Product Page Buttons', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_START, @@ -981,7 +993,12 @@ return array( ), 'requirements' => array(), 'gateway' => 'paypal', - 'description' => __( 'Customize the appearance of Standard Payments on the single product page.', 'woocommerce-paypal-payments' ), + 'description' => sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Customize the appearance of the PayPal smart buttons on the %1$sSingle Product Page%2$s.', 'woocommerce-paypal-payments' ), + '', + '' + ), ), 'button_product_enabled' => array( 'title' => __( 'Enable buttons on Single Product', 'woocommerce-paypal-payments' ), @@ -1109,7 +1126,7 @@ return array( ), 'message_product_heading' => array( - 'heading' => __( 'Pay Later on Single Product Page', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Pay Later messaging on Single Product Page', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_START, @@ -1117,7 +1134,14 @@ return array( ), 'requirements' => array( 'messages' ), 'gateway' => 'paypal', - 'description' => str_replace( '', '', __( 'Displays Pay Later messaging for available offers. Restrictions apply. Click here to learn more. Pay Later button will show for eligible buyers and PayPal determines eligibility.', 'woocommerce-paypal-payments' ) ), + 'description' => sprintf( + // translators: %1$s, %2$s, %3$s and %4$s are the opening and closing of HTML tag. + __( 'Displays Pay Later messaging on the Single Product Page for available offers. Restrictions apply. %1$sClick here to learn more%2$s. This setting does not %3$sdisable the Pay Later button%4$s which will show for eligible buyers.', 'woocommerce-paypal-payments' ), + '', + '', + '', + '' + ), 'class' => array( 'ppcp-subheading' ), ), 'message_product_enabled' => array( @@ -1279,7 +1303,7 @@ return array( // Cart settings. 'button_cart_heading' => array( - 'heading' => __( 'Cart', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Cart Buttons', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_START, @@ -1287,10 +1311,15 @@ return array( ), 'requirements' => array(), 'gateway' => 'paypal', - 'description' => __( 'Customize the appearance of Standard Payments on the cart page.', 'woocommerce-paypal-payments' ), + 'description' => sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Customize the appearance of the PayPal smart buttons %1$son the Cart page%2$s.', 'woocommerce-paypal-payments' ), + '', + '' + ), ), 'button_cart_enabled' => array( - 'title' => __( 'Buttons on Cart', 'woocommerce-paypal-payments' ), + 'title' => __( 'Enable buttons on Cart', 'woocommerce-paypal-payments' ), 'type' => 'checkbox', 'label' => __( 'Enable on Cart', 'woocommerce-paypal-payments' ), 'default' => true, @@ -1415,7 +1444,7 @@ return array( ), 'message_cart_heading' => array( - 'heading' => __( 'Pay Later on Cart', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Pay Later messaging on Cart', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_START, @@ -1423,7 +1452,14 @@ return array( ), 'requirements' => array( 'messages' ), 'gateway' => 'paypal', - 'description' => str_replace( '', '', __( 'Displays Pay Later messaging for available offers. Restrictions apply. Click here to learn more. Pay Later button will show for eligible buyers and PayPal determines eligibility.', 'woocommerce-paypal-payments' ) ), + 'description' => sprintf( + // translators: %1$s, %2$s, %3$s and %4$s are the opening and closing of HTML tag. + __( 'Displays Pay Later messaging on the Cart page for available offers. Restrictions apply. %1$sClick here to learn more%2$s. This setting does not %3$sdisable the Pay Later button%4$s which will show for eligible buyers.', 'woocommerce-paypal-payments' ), + '', + '', + '', + '' + ), 'class' => array( 'ppcp-subheading' ), ), 'message_cart_enabled' => array( @@ -1585,7 +1621,7 @@ return array( // Mini cart settings. 'button_mini-cart_heading' => array( - 'heading' => __( 'Mini Cart', 'woocommerce-paypal-payments' ), + 'heading' => __( 'Mini Cart Buttons', 'woocommerce-paypal-payments' ), 'type' => 'ppcp-heading', 'screens' => array( State::STATE_START, @@ -1593,10 +1629,15 @@ return array( ), 'requirements' => array(), 'gateway' => 'paypal', - 'description' => __( 'Customize the appearance of Standard Payments on the Mini Cart.', 'woocommerce-paypal-payments' ), + 'description' => sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Customize the appearance of the PayPal smart buttons %1$son the Mini Cart page%2$s.', 'woocommerce-paypal-payments' ), + '', + '' + ), ), 'button_mini-cart_enabled' => array( - 'title' => __( 'Buttons on Mini Cart', 'woocommerce-paypal-payments' ), + 'title' => __( 'Enable buttons on Mini Cart', 'woocommerce-paypal-payments' ), 'type' => 'checkbox', 'label' => __( 'Enable on Mini Cart', 'woocommerce-paypal-payments' ), 'default' => true, @@ -2194,7 +2235,12 @@ return array( return false; }, 'wcgateway.settings.tracking-label' => static function ( ContainerInterface $container ): string { - $tracking_label = __( 'Enable tracking information feature on your store.', 'woocommerce-paypal-payments' ); + $tracking_label = sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Enable shipment tracking information to be sent to PayPal for seller protection features. Required when %1$sPay upon Invoice%2$s is used.', 'woocommerce-paypal-payments' ), + '', + '' + ); $is_tracking_available = $container->get( 'order-tracking.is-tracking-available' ); if ( $is_tracking_available ) { @@ -2283,7 +2329,7 @@ return array( $pui_button_text = $pui_enabled ? esc_html__( 'Settings', 'woocommerce-paypal-payments' ) - : esc_html__( 'Enable Pay Upon Invoice', 'woocommerce-paypal-payments' ); + : esc_html__( 'Enable Pay upon Invoice', 'woocommerce-paypal-payments' ); return sprintf( '

%1$s %2$s

%5$s

', diff --git a/modules/ppcp-webhooks/extensions.php b/modules/ppcp-webhooks/extensions.php index 480c6474d..7368e3c89 100644 --- a/modules/ppcp-webhooks/extensions.php +++ b/modules/ppcp-webhooks/extensions.php @@ -23,7 +23,12 @@ return array( ), 'requirements' => array(), 'gateway' => Settings::CONNECTION_TAB_ID, - 'description' => __( 'Status of the webhooks subscription.', 'woocommerce-paypal-payments' ), + 'description' => sprintf( + // translators: %1$s and %2$s are the opening and closing of HTML tag. + __( 'Status of the webhooks subscription. More information about the webhooks is available in the %1$sWebhook Status documentation%2$s.', 'woocommerce-paypal-payments' ), + '', + '' + ), ), 'webhooks_list' => array( 'title' => __( 'Subscribed webhooks', 'woocommerce-paypal-payments' ),