You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem
When the web store is in a none-english language and the payement system is via the PayPal Card Processing, the button "Place Order" does not get translated to the site language
Steps to reproduce
Set site language to German (or any other language, except for English, that has been installed on your WP site).
Enable PayPal Card Processing in WC PP Settings
Make a purchase using Credit card from PPP. --> Button shows as "Place order"
OR
Create an order via WC admin UI for your user.
Go to My Account → Orders → Pay → Credit card. --> Button shows as "Pay for order"
Expected behaviour
All buttons should be in the same language.
Possible cause
The button label is generated in line 559 of this file \modules\ppcp-button\src\Assets\class-smartbutton.php: $label = 'checkout' === $this->context() ? __( 'Place order', 'woocommerce-paypal-payments' ) : __( 'Pay for order', 'woocommerce-paypal-payments' );
Suggested solution
We should pull the label we are using for our button from a WooCommerce template instead of hardcoding it.
The text was updated successfully, but these errors were encountered:
isabellainpsyde
changed the title
Place order button from PayPal Card Processing does not get translated
Place order button from PayPal Card Processing does not get translated (196)
Oct 7, 2021
The problem
When the web store is in a none-english language and the payement system is via the PayPal Card Processing, the button "Place Order" does not get translated to the site language
Steps to reproduce
OR
Expected behaviour
All buttons should be in the same language.
Possible cause
The button label is generated in line 559 of this file \modules\ppcp-button\src\Assets\class-smartbutton.php:
$label = 'checkout' === $this->context() ? __( 'Place order', 'woocommerce-paypal-payments' ) : __( 'Pay for order', 'woocommerce-paypal-payments' );
Suggested solution
We should pull the label we are using for our button from a WooCommerce template instead of hardcoding it.
The text was updated successfully, but these errors were encountered: