Skip to content

Commit 90937a4

Browse files
d-alleynereykjalin
andauthored
Add context to "Discover" when referring to credit card name (#2519)
The Discover credit card payment method needs to be translated differently from the other instances of the word "Discover". Co-authored-by: Kristófer Reykjalín <[email protected]>
1 parent aaf4795 commit 90937a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-wc-stripe-blocks-support.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private function get_icons() {
300300
if ( 'USD' === get_woocommerce_currency() ) {
301301
$icons_src['discover'] = [
302302
'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/discover.svg',
303-
'alt' => __( 'Discover', 'woocommerce-gateway-stripe' ),
303+
'alt' => _x( 'Discover', 'Name of credit card', 'woocommerce-gateway-stripe' ),
304304
];
305305
$icons_src['jcb'] = [
306306
'src' => WC_STRIPE_PLUGIN_URL . '/assets/images/jcb.svg',

0 commit comments

Comments
 (0)