Contact Form 7 is one of the most popular WordPress plugins. It allows you to create, customize, and manage front-end forms for your site. In this tutorial, we provide step-by-step instructions on how to make these forms multilingual using WPML.
Here is a short video that explains the process of translating form built using the Contact Form 7 plugin:
- Contact Form 7 plugin
- A recent version of WPML, including the String Translation and Translation Management add-on plugins
- Contact Form 7 Multilingual add-on plugin
WPML’s Getting Started Guide helps you set up WPML in a few minutes. You will want to refer later to some of its subtopics, such as String Translation. We recommend that you keep this guide open while following this tutorial.
WPML offers two translation editors you can use for translating your site’s content:
- WPML classic translation editor (CTE).
- WPML advanced translation editor (ATE) offers automatic translation, a glossary, spell checker, and more! The automatic machine translation service starts at $4.98/month for 5,000 words and provides enough word quota for most sites.
Besides translating your site content yourself, you can also:
- Send your content for translation to a professional translation service.
- Create your own team of local translators from the Translation Roles tab in Translation Management and assign translation jobs to them.
To translate your forms, use the following steps:
- Create your form in the default language.
- Insert the form shortcode into a post, page, or widget in the default language.
- Translate the form.
- Translate the post, page, or widget that holds the form.
To create your form, go to the Contact -> Add New page. When completed, you will get a shortcode for your contact form. Copy it.
Now, you need to insert the shortcode into a post, page, or widget in the default language.
In our example, we created a new page in English and added a shortcode to it.
To translate your form, go to the WPML -> Translation Management page. There, use the following steps:
- Select Contact Form in the first dropdown menu of the Select items for translation section.
- Use the checkboxes to select the form you want to translate.
- Click Add selected content to translation basket.
Now, go to the Translation basket tab, and send this translation job to a translator.
If you are also a translator, you can take a translation job by going to the WPML -> Translations page.
Finally, you need to translate the pages, posts, or widgets that hold the forms.
When editing a post or page, use the Language box to translate or duplicate it.
Make sure to translate only the texts. Do not change anything within the shortcode that is used to insert the contact form. WPML will automatically display the form in the correct language.
You might have existing forms translated without using Translation Management. In this case, it is not possible to simply start using Translation Management.
Instead, you need to:
- Delete translated versions of the forms.
- Translate the forms using Translation Management.