Some translations forced into English, when CF7 form in the content
-
Hi.
Some translations are forced into English when Contact Form 7 form is in the content.
Desktop: open the side Cart (the title there).
The mobile quick menu at the bottom of the screen is all in English.
This goes away if the form is removed from the content.
Hello,
You can translate/rewrite all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3
Please check the video tutorial to see how to save the translation file correctly. You can remove the plugin and translations would remain. Also, translations would remain after each theme update.
In order to translate the WooCommerce strings, you need to create a separate translation in Loco > Plugins > WooCommerce in the same way as shown in the video. The same for Contact form 7.
Best Regards
All the strings are translated.
If Contact Form 7 is taken out of the content, all strings are in the Estonian language.
Please compare it to some other views and you can see it.
No form – strings in Estonian.
CF7 in the content – some strings suddenly in English.
Like switch_to_locale at some place or something.
-
This reply was modified 2 years, 5 months ago by
Inzman.
Hello,
Please provide the admin rights for the user.
Best Regards
Hello.
Credentials in the first post now have admin rights.
Hello,
The contact form plugin generates the form in the language which is set on the site. WoodMart theme does not influence this plugin.
Some of the strings in CF7 are translated inside the form.
If you have any questions please feel free to contact us.
Best Regards
So others can save 40 euros in theme-required plugin support… You can define the locale for Contact Form 7 plugin. For some reason, mine was always set to “en_US” which messed up some of the displayed strings.
So, after looking through CF7 code:
// Set CF7 locale
add_action('wpcf7_save_contact_form', 'wpcf7_save_contact_form_action', 10, 3);
function wpcf7_save_contact_form_action( $contact_form, $args, $context ){
$args['locale'] = get_locale();
if(null !== $args['locale'])
$contact_form->set_locale( $args['locale'] );
}
Hello,
We are glad you have found the reason.
If you have any questions please feel free to contact us.
Best Regards
The topic ‘Some translations forced into English, when CF7 form in the content’ is closed to new replies.