mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Make string translatable
This commit is contained in:
parent
f0a00f1cd6
commit
e0c46d1b4e
1 changed files with 3 additions and 2 deletions
|
@ -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(
|
||||
'<p class="form-row form-row-wide"><label>Or select a saved Credit Card payment</label><select id="saved-credit-card" name="saved_credit_card"><option value="">%s</option>',
|
||||
esc_html__( 'Choose a saved payment', 'woocommerce-paypal-payments' )
|
||||
'<p class="form-row form-row-wide"><label>%1$s</label><select id="saved-credit-card" name="saved_credit_card"><option value="">%2$s</option>',
|
||||
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 ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue