Gravity Forms Multilingual

Description

Gravity Forms Multilingual lets you create multi-language Gravity Forms. Just translate the texts and the form displays in the correct language on the front-end of your WordPress website.

Getting Started

Start by installing and activating the following plugins:

If you’re new to WPML, check out our Getting Started Guide. It quickly walks you through different translation options you can use.

Before translating your forms, make sure that the No-Conflict Mode setting is turned off on the Forms → Settings page. When this option is enabled you cannot translate the form using the language switcher in the top admin bar.

Gravity Forms Multilingual
Turning off Gravity Forms “No Conflict Mode”

Creating and Translating Gravity Forms

To translate your Gravity Forms with WPML, you need to follow a 4-step process:

  1. Create the form and the confirmations and notifications for it in your default language
  2. Translate the form
  3. Translate the sub-labels
  4. Insert the form into a post or page and translate the post or page

Creating the Default Language Form

To create the default language form, go to Forms → New Form. You can choose from a list of pre-made form templates or build your form from scratch.

From the Settings area, you can set up Confirmations and Notifications. These are simple messages or email notifications that you can automatically send to a user after they submit a form.

WPML recognizes the Confirmations and Notifications you set up for each form. After sending the form for translation, you will be able to translate these messages together with the rest of your form content.

Translating the Form

Edit the form you want to translate and hover over the language switcher. From the drop-down menu that appears, you can send the form for translation into a secondary language.

Clicking Send to translation opens Translation Management and filters the available content to show only Gravity Forms.

You can also access this list by going to WPML → Translation Management and selecting Gravity Form from the dropdown menu.

From the Translation Management Dashboard, you can select between assigning the form translations to a translator or translating them by yourself.

Sending the Form to Translators

From Translation Management, you can assign forms to your translators or professional translation service.

After you add the forms to the translation basket, click on the Translation Basket tab. Choose a translator or translation service for your different language pairs and send your forms for translation.

Gravity Forms Multilingual
Sending the forms for translation from the Translation Basket

Translating Forms By Yourself

To translate the form by yourself, select the form you want to translate and the languages you want to translate it into.

Then, select the Translate myself option and click Add to Translation Queue.

Gravity Forms Multilingual
Sending the form for translation

Next, go to WPML → Translations and click the Translate button for the job related to your form.

Gravity Forms Multilingual
Starting the translation of a form

You’re taken to the Advanced Translation Editor where you can translate your form texts, main labels, and custom sub-labels. If you have automatic translation credits, the built-in automatic translation feature fills in the translations for you.

If you are translating by yourself and your default language forms include merge tags such as {all_fields} or {Name (First):1.3}, make sure to copy them to your translation. Translating the merge tags could break the secondary language form.

Gravity Forms Multilingual
Translating a Gravity form using WPML’s Advanced Translation Editor

If you use any of the sub-labels provided by Gravity Forms by default, you need to follow the steps below and translate them in String Translation.

Translating Sub-Labels

While you can translate the form texts, labels, and custom sub-labels in the Advanced Translation Editor or using automatic translation, you need to translate the default sub-labels for fields in String Translation. Examples of sub-label texts provided by default include FirstLast, for the Name field, and Enter Email and Confirm Field for the Email field.

To do this:

  1. Go to WPML → Theme and plugins localization. In the Strings in the plugins section, select Gravity Forms and click the Scan selected plugins for strings button.
  2. Once scanning is complete, go to WPML → String Translation. Use the In domain drop-down menu to search for strings in the gravityforms domain. You can also use the search bar to find the exact strings you want to translate.
Gravity Forms Multilingual
Searching for the additional form texts to translate in String Translation
  1. Click the plus icon next to the string you want to translate and hit enter to save it.
Gravity Forms Multilingual
Translating the custom labels of form fields in String Translation

Using Translated Forms In Pages

After translating all your form content, you can insert the form into any post or page using the Gravity Forms block.

Then, simply make sure to translate that post or page as well. You can do this by clicking the plus icon from the Language tab in the right sidebar.

Gravity Forms Multilingual
Clicking the plus icon to translate the page with the form

When users visit the page in the secondary language, WPML will automatically display the form in the correct language.

After submitting the form in the secondary language, your users will also see the translated confirmation message and receive the translated notification email in their language

Updating Form Translations

If you update the default language form by adding, deleting, or updating any of the content, you will need to update the translated versions.

Certain types of fields in Gravity Forms include multiple choices that users select, like Drop Downs and Radio Buttons. Changing the position of options in multiple-choice fields that have already been translated may result in those fields losing their translations. In this case, you need to translate these fields again.

To update the translation of a form or translate new content that you added to the form, follow these steps:

  1. Navigate to WPML → Translations.
  2. The Status indicates that the translation needs an update. Click on the Edit button to update the translation.
Gravity Forms Multilingual
Updating a form’s translation
  1. In the Advanced Translation Editor, review the automatic translations for the new field(s). If you don’t have translation credits, you’ll need to add the translations by yourself. Click Complete to update the translation.

Content Submitted into Translated Forms

Please note that the Gravity Forms plugin does not detect a language of contents submitted in a form. When you submit content into a translated form, that content will still be created in the default language.

You can use Gravity Forms hooks and filters to write your own application logic and set the language of the submitted content after Gravity Forms creates it.

Deleting Form Translations

To delete a form’s translations, go to WPML → Packages and choose Gravity Forms from the dropdown menu. Select and delete the package that matches the name of the relevant form.

Gravity Forms Multilingual
Deleting form translations

If you want to translate the form again later and don’t see it in WPML → Translation Management, simply re-save the form.

Known Issues

WPML works fine with this plugin, but sometimes there could be minor issues we’re working on. This is expected as both plugins provide frequent updates.

Current unresolved issues:

You can also search all known issues including previously resolved issues for this plugin.

There are no reviews yet.

Write a review

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.