Add context to the credit card names used for translators. (#36364)
Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local> Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
This commit is contained in:
parent
a587612934
commit
6be097ff45
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: tweak
|
||||||
|
|
||||||
|
Add context to translatable strings for credit card labels.
|
|
@ -1560,12 +1560,12 @@ function wc_get_credit_card_type_label( $type ) {
|
||||||
$labels = apply_filters(
|
$labels = apply_filters(
|
||||||
'woocommerce_credit_card_type_labels',
|
'woocommerce_credit_card_type_labels',
|
||||||
array(
|
array(
|
||||||
'mastercard' => __( 'MasterCard', 'woocommerce' ),
|
'mastercard' => _x( 'MasterCard', 'Name of credit card', 'woocommerce' ),
|
||||||
'visa' => __( 'Visa', 'woocommerce' ),
|
'visa' => _x( 'Visa', 'Name of credit card', 'woocommerce' ),
|
||||||
'discover' => __( 'Discover', 'woocommerce' ),
|
'discover' => _x( 'Discover', 'Name of credit card', 'woocommerce' ),
|
||||||
'american express' => __( 'American Express', 'woocommerce' ),
|
'american express' => _x( 'American Express', 'Name of credit card', 'woocommerce' ),
|
||||||
'diners' => __( 'Diners', 'woocommerce' ),
|
'diners' => _x( 'Diners', 'Name of credit card', 'woocommerce' ),
|
||||||
'jcb' => __( 'JCB', 'woocommerce' ),
|
'jcb' => _x( 'JCB', 'Name of credit card', 'woocommerce' ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue