PCP-42 / fix some labels

This commit is contained in:
David Remer 2020-08-20 08:38:42 +03:00
parent f8893f89d5
commit 234440416c
5 changed files with 52 additions and 24 deletions

View file

@ -34,7 +34,7 @@ class OnboardingRenderer
data-paypal-button="true"
><?php
esc_html_e(
'Sign up for PayPal',
'Connect to PayPal',
'woocommerce-paypal-commerce-gateway'
);
?></a>

View file

@ -567,7 +567,7 @@ return [
'gateway' => 'paypal',
],
'message_heading' => [
'heading' => __('Message on Checkout', 'woocommerce-paypal-commerce-gateway'),
'heading' => __('Credit Messaging on Checkout', 'woocommerce-paypal-commerce-gateway'),
'type' => 'ppcp-heading',
'screens' => [
State::STATE_PROGRESSIVE,
@ -589,7 +589,7 @@ return [
'gateway' => 'paypal',
],
'message_layout' => [
'title' => __('Message layout', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging layout', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'text',
@ -610,7 +610,7 @@ return [
'gateway' => 'paypal',
],
'message_logo' => [
'title' => __('Message logo', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging logo', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'primary',
@ -633,7 +633,7 @@ return [
'gateway' => 'paypal',
],
'message_position' => [
'title' => __('Message logo position', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging logo position', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'left',
@ -655,7 +655,7 @@ return [
'gateway' => 'paypal',
],
'message_color' => [
'title' => __('Message text color', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging text color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'black',
@ -678,7 +678,7 @@ return [
'gateway' => 'paypal',
],
'message_flex_color' => [
'title' => __('Message color', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'blue',
@ -704,7 +704,7 @@ return [
'gateway' => 'paypal',
],
'message_flex_ratio' => [
'title' => __('Message ratio', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging ratio', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => '1x1',
@ -857,7 +857,7 @@ return [
],
'message_product_heading' => [
'heading' => __('Message on Single product', 'woocommerce-paypal-commerce-gateway'),
'heading' => __('Credit Messaging on Single product', 'woocommerce-paypal-commerce-gateway'),
'type' => 'ppcp-heading',
'screens' => [
State::STATE_PROGRESSIVE,
@ -879,7 +879,7 @@ return [
'gateway' => 'paypal',
],
'message_product_layout' => [
'title' => __('Message layout', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging layout', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'text',
@ -900,7 +900,7 @@ return [
'gateway' => 'paypal',
],
'message_product_logo' => [
'title' => __('Message logo', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging logo', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'primary',
@ -923,7 +923,7 @@ return [
'gateway' => 'paypal',
],
'message_product_position' => [
'title' => __('Message logo position', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging logo position', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'left',
@ -945,7 +945,7 @@ return [
'gateway' => 'paypal',
],
'message_product_color' => [
'title' => __('Message text color', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging text color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'black',
@ -968,7 +968,7 @@ return [
'gateway' => 'paypal',
],
'message_product_flex_color' => [
'title' => __('Message color', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'blue',
@ -994,7 +994,7 @@ return [
'gateway' => 'paypal',
],
'message_product_flex_ratio' => [
'title' => __('Message ratio', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging ratio', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => '1x1',
@ -1276,7 +1276,7 @@ return [
],
'message_cart_heading' => [
'heading' => __('Message on Cart', 'woocommerce-paypal-commerce-gateway'),
'heading' => __('Credit Messaging on Cart', 'woocommerce-paypal-commerce-gateway'),
'type' => 'ppcp-heading',
'screens' => [
State::STATE_PROGRESSIVE,
@ -1298,7 +1298,7 @@ return [
'gateway' => 'paypal',
],
'message_cart_layout' => [
'title' => __('Message layout', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging layout', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'text',
@ -1319,7 +1319,7 @@ return [
'gateway' => 'paypal',
],
'message_cart_logo' => [
'title' => __('Message logo', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging logo', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'primary',
@ -1342,7 +1342,7 @@ return [
'gateway' => 'paypal',
],
'message_cart_position' => [
'title' => __('Message logo position', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging logo position', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'left',
@ -1364,7 +1364,7 @@ return [
'gateway' => 'paypal',
],
'message_cart_color' => [
'title' => __('Message text color', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging text color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'black',
@ -1387,7 +1387,7 @@ return [
'gateway' => 'paypal',
],
'message_cart_flex_color' => [
'title' => __('Message color', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'blue',
@ -1413,7 +1413,7 @@ return [
'gateway' => 'paypal',
],
'message_cart_flex_ratio' => [
'title' => __('Message ratio', 'woocommerce-paypal-commerce-gateway'),
'title' => __('Credit Messaging ratio', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => '1x1',

View file

@ -48,7 +48,7 @@ class CreditCardGateway extends PayPalGateway
];
}
$this->method_title = __('PayPal Credit Card', 'woocommerce-paypal-commerce-gateway');
$this->method_title = __('PayPal Credit Card Processing', 'woocommerce-paypal-commerce-gateway');
$this->method_description = __(
'Provide your customers with the option to pay with credit card.',
'woocommerce-paypal-commerce-gateway'

View file

@ -66,7 +66,7 @@ class PayPalGateway extends \WC_Payment_Gateway
];
}
$this->method_title = __('PayPal Payments', 'woocommerce-paypal-commerce-gateway');
$this->method_title = __('PayPal', 'woocommerce-paypal-commerce-gateway');
$this->method_description = __(
'Provide your customers with the PayPal payment option.',
'woocommerce-paypal-commerce-gateway'

View file

@ -185,6 +185,34 @@ class SettingsRenderer
: woocommerce_form_field($key, $config, $value); ?></<?php echo esc_attr($thTd); ?>>
</tr>
<?php endforeach;
if ($isDcc) :
?>
<tr>
<th><?php esc_html_e('3D Secure', 'woocommerce-paypal-commerce-gateway'); ?></th>
<td>
<p>
<?php
echo wp_kses_post(
sprintf(
//translators: %s is a link tag.
__(
'3D Secure benefits cardholders and merchants by providing an additional
layer of verification using Verified by Visa, MasterCard SecureCode and
American Express SafeKey. %sLearn more about 3D Secure.%s',
'woocommerce-paypal-commerce-gateway'
),
//ToDo: Provide link to documentation.
'<a href="#">',
'</a>'
)
); ?>
</p>
</td>
</tr>
<?php
endif;
}
//phpcs:enable Inpsyde.CodeQuality.NestingLevel.High