flowful
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [WooCommerce] Translating issue with Checkout login formI was able to make it work with same code after all. The Email and Password and Login were case sensitive, and it didn’t work when I typed them all with small letters..
For people with same problems who find this, type this code into your child themes functions.php
//Change the Create Account checkout text function wc_create_account_field_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'If you have shopped with us before, please enter your details below. If you are a new customer, please proceed to the Billing section.' : $translated_text = __( 'Jos olet asioinut kanssamme aiemmin, kirjaudu sis??n t?st?. Jos olet uusi asiakas, siirry seuraavaan osioon.', 'woocommerce' ); break; } return $translated_text; } add_filter( 'gettext', 'wc_create_account_field_strings', 20, 3 ); function change_lost_your_password ($text) { if ($text == 'Lost your password?'){ $text = 'Unohtuiko salasana?'; } return $text; } add_filter( 'gettext', 'change_lost_your_password' ); function change_remember_me ($text) { if ($text == 'Remember me'){ $text = 'Muista minut'; } return $text; } add_filter( 'gettext', 'change_remember_me' ); function change_email ($text) { if ($text == 'Email'){ $text = 'S?hk?posti'; } return $text; } add_filter( 'gettext', 'change_email' ); function change_password ($text) { if ($text == 'Password'){ $text = 'Salasana'; } return $text; } add_filter( 'gettext', 'change_password' ); function change_login ($text) { if ($text == 'Login'){ $text = 'Kirjaudu'; } return $text; } add_filter( 'gettext', 'change_login' );
You might have to play around with Login button’s size through custom CSS maybe..?
Viewing 1 replies (of 1 total)