I understand what you're looking for and will try my best to assist you in this matter.
From the screenshot, it appears that the shortcode is registered correctly for translation. However, to view the attribute values in the translation editor, please follow these steps:
1. Make a small change to the page in the WordPress Editor.
2. Proceed to update the translation.
3. When you are in the translation editor, enter the attribute value added to the shortcode in the search box, as shown here.
4. The attribute value should appear in the results.
However, may I ask, what is the purpose of translating the Gravity Form shortcode? If your goal is to display the translated form, please note that by installing the Gravity Forms Multilingual addon on your site, you can easily translate the form into other languages. This way, the translated form will automatically appear on the translated page without needing to manually translate the shortcode or enter the translated form.
Every language has a different form with different input fields. That is why we don't use the Gravity Forms Multilingual addon.
We the information you have given me, I do see the ID of the shortcode. I translated the ID to the right form ID via ATE but when I check in on the front-end the wrong form is still showing. Am I doing something wrong?
I saw that there was also a string translation for the shortcode, after changing this, the right form is loaded on the page. However, when making changes in the translations with ATE, the change is undone. In the screenshot you will see the last record of the revision log that shows that the ID is being changed while no user is linked to that action. How is this possible? And more important, how do we fix this?
If you want to display a different form for each language, the recommended approach is to translate the Shortcode via String Translation. Since the Form ID changes, it is advisable to remove the code you used to register the Shortcode(in WPML > Settings > Custom XML Configuration) and the code added to translate numbers in the functions.php file.
Once this is done, go to "WPML > String Translation" and search for the default form Shortcode. If it appears in the results, add the Shortcode of the form you want to display in other languages as the translation.
This should ensure that the form appears correctly in each language.
Please let me know how it goes. I will be happy to help if you need further assistance in this matter.
Best regards,
Prosenjit
The topic ‘[Closed] GravityForms shortcode translation’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.