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(
|
||||
'woocommerce_credit_card_type_labels',
|
||||
array(
|
||||
'mastercard' => __( 'MasterCard', 'woocommerce' ),
|
||||
'visa' => __( 'Visa', 'woocommerce' ),
|
||||
'discover' => __( 'Discover', 'woocommerce' ),
|
||||
'american express' => __( 'American Express', 'woocommerce' ),
|
||||
'diners' => __( 'Diners', 'woocommerce' ),
|
||||
'jcb' => __( 'JCB', 'woocommerce' ),
|
||||
'mastercard' => _x( 'MasterCard', 'Name of credit card', 'woocommerce' ),
|
||||
'visa' => _x( 'Visa', 'Name of credit card', 'woocommerce' ),
|
||||
'discover' => _x( 'Discover', 'Name of credit card', 'woocommerce' ),
|
||||
'american express' => _x( 'American Express', 'Name of credit card', 'woocommerce' ),
|
||||
'diners' => _x( 'Diners', 'Name of credit card', 'woocommerce' ),
|
||||
'jcb' => _x( 'JCB', 'Name of credit card', 'woocommerce' ),
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue