From e0c46d1b4eee77d2469407060eee6ccaefcaa777 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Wed, 31 Mar 2021 10:54:44 +0200 Subject: [PATCH] Make string translatable --- modules/ppcp-button/src/Assets/class-smartbutton.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-button/src/Assets/class-smartbutton.php b/modules/ppcp-button/src/Assets/class-smartbutton.php index bf53d847b..aafa8d260 100644 --- a/modules/ppcp-button/src/Assets/class-smartbutton.php +++ b/modules/ppcp-button/src/Assets/class-smartbutton.php @@ -224,8 +224,9 @@ class SmartButton implements SmartButtonInterface { $tokens = $payment_token_repository->all_for_user_id( get_current_user_id() ); if ( $tokens && $this->tokens_contains_card( $tokens ) ) { $output = sprintf( - '

', + esc_html__( 'Or select a saved Credit Card payment', 'woocommerce-paypal-payments' ), + esc_html__( 'Choose a saved payment', 'woocommerce-paypal-payments' ), ); foreach ( $tokens as $token ) { if ( isset( $token->source()->card ) ) {