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:
Michael Pretty 2023-05-11 10:59:24 -04:00 committed by GitHub
parent a587612934
commit 6be097ff45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Add context to translatable strings for credit card labels.

View File

@ -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' ),
)
);