This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing two main issues with a translated contact form. First, the dropdown options in the form are not fully displayed in the translated version. Second, the link to the privacy policy page is not correctly pointing to the translated version of the page. Solution: 1. For the dropdown options not displaying correctly, ensure that the options are correctly added and formatted in both the default and translated forms. You might need to update the default form to match the format shown in this demo, and then resend the form for translation. 2. For the incorrect privacy policy link, the link should be translated through the Translation Editor. In the Translation Editor, find the paragraph where the link is added, unlock the field with the lock icon, update it with the translated page link, and save the translation. If these steps do not resolve the issues or if the solution seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to translate a contact form named 'ContactoLanding' (post=5113) on my site hidden link. I reopened a long ticket on https://wpml.org/forums/topic/help-translating-the-events-calendar-plugin where all previous issues were resolved. I managed to complete the translation by reverting to a previous version of the ATE.
Symptoms:
1- The link to the privacy statement is not 'translated' and should point to a '/ca/' page. 2- The list of options under the field 'On vols la teva classe gratuïta? *' is not fully displayed; only the first option is shown.
Questions:
How can I ensure the link to the privacy statement is correctly translated to point to a '/ca/' page?
Why is the list of options under 'On vols la teva classe gratuïta? *' not fully displayed, and how can I fix it?
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+01:00)
Hello there!
I'll help you get started while a supporter takes your case.
1) Please try to downgrade to a PHP version that is fully compatible with WordPress. I think you could get away with using PHP 8.1 for compatibility with all the plugins and themes on the ecosystem. We're currently compatible up to 8.2 but most of the plugins and themes are more compatible with 8.1
2) Please update WPML and String Translations to the latest version as of monday 16 because it's the only compatible with the version of Elementor you are currently using (It will start to crash otherwise). You'll find the latest versions here
3) How is the contact form created? with Elementor, with the events plugin?
4) Can you tell us the steps how you're translating the form?
These things will help us understand what to do next.
I am running the latest versions of WPML and String Translation.
Though I think my problem is not related with it, I downgraded to PHP 8.1 (from 8.3)
The issue is still there.
I created the form with Contact Form 7 and translated it with "Contact Form 7 Multilingual" version 1.3.2. through the ATE.
My two issues:
1- As you can see at hidden link, the list of options (under "On vols la teva classe gratuïta? *") is not shown. If you go to the Spanish version, there is a list of destinations for the contact form.
2- At the bottom, there is a text about privacy with a link that is not redirected to the version in Catalonian (URL beginning with /ca/)
So my point is that these issues are related to something that has to be corrected within WPML. Could you please help me with that?
I understand the issue and would be happy to assist with them.
1. Items Not Showing in the Dropdown of the Form: This issue may occur if the dropdown items haven’t been translated properly. Could you please open the default contact form in one tab and the translated form in another and verify that the dropdown options are correctly added to both the default and translated forms?
If not, you may need to make a small update to the default form, ensuring the options are correctly configured as shown in hidden link">this demo, and then resend the form for translation.
Once the translations are updated and the options in both the default and translated forms are confirmed, the dropdown options should appear correctly.
2. "Privacy Policy" Page Link Is Incorrect in Translation: Upon checking, I noticed the link was added using an anchor tag. In such cases, the link needs to be translated through the Translation Editor.
In the Translation Editor, locate the paragraph segment where the link is added. You’ll see a field with a lock icon. Refer to this screenshot: hidden link. Unlock the field, update it with the link to the translated page, and then save the translation. This will ensure the link is correctly updated in the translation.
I hope you can understand. Please try and let me know how it goes. I'll be happy to help if you need further assistance in this matter.
Hello, Prosenjit
The dropdown options are copied exactly from the original language.
I use options within double quotes and with a | to separate the shown text from the real option, such as "Almería|almeria@nueva-acropolis.es"
The problem, I guess, is in the |
Somehow it is not recognized by WPML or treated in a wrong way.
Regarding the other issue with the link inside the form, I was able to change correctly one of the languages, but the other two does not finish to be translated: it always shows 98% completed and there is nothing pending to translate.
How can I solve it?
The single bar (`|`) or pipe-separated options should not cause any issues in the translation if the exact same format is copied and included. Kindly open the translated form in the Form editor and ensure that the options and values are correctly defined in the translation.
As for the issue of being unable to complete the translation, it’s possible that some attribute values are not appearing in the new version of the Advanced Translation Editor. Could you try switching to the previous version of the translation editor, by following the steps shown in hidden link">this screenshot, and check if the untranslated items are visible?
Please let me know how it goes. I'll be happy to help if you need further assistance in this matter.
Thank you for your support!
The problem with the option list was in the double quotes for each element: regular translation only put at the beginning and at the end