[Resolved] Gravity Forms User Registration works only in default language
This thread is resolved. Here is a description of the problem and solution.
Problem: You are using Gravity Forms User Registration with conditional logic based on country, and you've encountered issues where countries in conditional logic aren't recognized when encoded in French. Additionally, email notifications are only partially translated, with the subject being translated but the rest remaining in English. Solution: We recommend removing the language files responsible for translating the country names in Gravity Forms. Specifically, delete the
gravityforms-fr_FR.mo
file located in
public/wp-content/languages/plugins/
. This action will prevent the automatic translation of country names, allowing you to manually set them up as needed in French. After removing these files, you may need to retranslate some strings using WPML's string translation tool. Please ensure to back up your site before making these changes.
If this solution does not resolve your issue or seems outdated, or if it does not apply to your specific case, we highly recommend opening a new support ticket. Additionally, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can also visit our support forum at WPML support forum.
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 use Gravity Forms User Registration with conditional logic based on country. It seems that countries in conditional logic aren't recognized when encoded in French. I looked for all the strings with countries to translate them but it is not working. For example, when I use France as country it is fine since France in EN and France in FR is the same. But if I used Belgique in my drop down in FR, then I think it is not recognized as Belgium. I also translate string from email notification but only the subject is well translated and the rest remains in English when the form is used in FR.
Symptoms:
Countries in conditional logic aren't recognized when encoded in French. Email notification translations are incomplete, with only the subject being translated and the rest remaining in English.
Questions:
Can you help with the issue where countries in conditional logic aren't recognized when encoded in French?
Why are email notifications only partially translated, with the subject being translated but the rest remaining in English?
Upon review, I believe I have a solution to prevent the address from being translated. We need to remove the appropriate language files located in wp-content/languages.
I've conducted testing at this link: hidden link and successfully displayed the English countries here: hidden link
Could you please provide FTP access details for backup purposes? This will allow me to proceed with removing the language files responsible for translating the country names.
You can check now hidden link the country is displaying the English language which is what you're looking for. However, some other strings reverted to English and you'll have to retranslate it again using the string translation.
I have removed the gravityforms-fr_FR.mo file from public/wp-content/languages/plugins/gravityforms-fr_FR.mo
Typically, Gravity Forms and other third-party plugins include translation files for popular languages. If we remove the language files "gravityforms-fr_FR.mo" from "public/wp-content/languages/plugins/" folder, it will remove translations for Gravity Forms default strings like countries, etc.
However, we can still utilize WPML string translation to re-translate these strings if required. Please check your forms to see how many default strings are affected by this change.
Also, let me know if you're able to get the condition working after removing the country translations.
Furthermore, please always backup before you proceed.
Thanks a lot for your help.
I have another question regarding product translation.
How can I translate products I added in English and duplicate images?
for now when I launch a product translation I need to add the images after the translation.
I know there is an option about medias but it wasn't clear for Me.
Can you help on this?
Thank you
New threads created by Kor and linked to this one are listed below: