This thread is resolved. Here is a description of the problem and solution.
Problem:
Content from custom code not showing as translated in second language
Solution:
1- Install WP forms multilingual
2- Manually link the Two forms (Original and translation) with each other
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.
Tagged: Custom Work
This topic contains 24 replies, has 2 voices.
Last updated by akqaF 1 year, 11 months ago.
Assisted by: Ilyes.
Author | Posts |
---|---|
June 26, 2023 at 10:28 am #13894535 | |
Ilyes Supporter
Languages: English (English ) French (Français ) Arabic (العربية ) Timezone: Pacific/Easter (GMT-06:00) |
Hello again, I'm sorry to hear that it didn't fix it, Since it worked with the minimal environment (sandbox), I could hardly find a cause for this without having a closer look from your admin site. I'm aware that you cannot share the access, that is why it is worth trying the following first: Note: Please make sure to save a backup of your site before doing these changes. 1- Update WPML plugins 2- Minimal Environment 3- Recreate another form under a new page Along with point 2, and on a new page: see if creating a whole new simple form (similar to the one you made under the sandbox) recreates the issue. 4- Run troubleshooting options again If any of these options helped, I would really appreciate it if we could at least have access to a staging environment or a copy of the site that we could run locally. I will open a private reply for your next reply in case you are able to share it. Please let me know 🙂 |
June 27, 2023 at 5:40 am #13899223 | |
akqaF |
Hi Team, |
June 27, 2023 at 3:53 pm #13904635 | |
Ilyes Supporter
Languages: English (English ) French (Français ) Arabic (العربية ) Timezone: Pacific/Easter (GMT-06:00) |
Hello, We truly understand the severity of the situation, Here is a step by step of what I did to solve the issue : hidden link However, our hands are really tied as we cannot do an effective comparison, and we cannot see anything wrong with the code nor a difference in configuration (referring to the Debug Information you previously shared). The only thing that really could help is to test the points 2,3 and 4 of my previous reply. Please confirm that this was done. Also, I will leave a comment to our developers to re-check your code and see if they missed anything. |
June 29, 2023 at 9:09 am #13916019 | |
akqaF |
Hi Team, Please check and let me know the solution for this so that i can apply the same on live environment. Thanks |
June 30, 2023 at 5:02 am #13920833 | |
akqaF |
Please update me as soon as possible. It's been quite urgent and need to figure it out at the earliest. |
June 30, 2023 at 10:07 am #13922695 | |
Ilyes Supporter
Languages: English (English ) French (Français ) Arabic (العربية ) Timezone: Pacific/Easter (GMT-06:00) |
Your next reply is private. |
July 3, 2023 at 2:14 pm #13933701 | |
Ilyes Supporter
Languages: English (English ) French (Français ) Arabic (العربية ) Timezone: Pacific/Easter (GMT-06:00) |
Hello, Thank again for the access and for your patience, Several things got the attention of our developers that some might be related to this issue: - The database supports uppercase characters for tables names - this is prone to issues. => We think that we have to get a database and test again locally, otherwise on the server perhaps it is best to test in minimal because there are some security plugins. On a local environment, re-saving the translation fixed the issue, but this obviously is not working on your site. I suggest to check with the minimal setup, turn off all caching – including the one from pressidium and all security plugins and test again. Along with these changes, Please let me know if it is possible to have a copy of this staging site, in that case, I will open a private reply for you to share it. We appreciate your cooperation and help to solve this issue! 🙂 Best, |
July 4, 2023 at 7:27 am #13937449 | |
akqaF |
it's very disappointed to say that we have not expected these kind of replies from WPML. even if it's cache issue, how it will work on a live environment. Could you please ask your developer team find the issue. We have already shared environment for you to debug and test. We are not able provide you the database as we have not authorized to do so. This is a serious issue of WPML to not providing the translation in wordpress filter function. You can see the translation for the same when we try to output the same string in arabic environment but not in filter function. Please let me know if you can figure out the issue from your-end. we have purchased and used WPML on multiple sites. if the services is like this, we need to re-think of it. Please escalate the issue and get a feasible solution. |
July 5, 2023 at 3:00 pm #13951919 | |
Ilyes Supporter
Languages: English (English ) French (Français ) Arabic (العربية ) Timezone: Pacific/Easter (GMT-06:00) |
Hello again, We apologize for the inconvenience that this may have caused, We found a fix for your issue, please refer to this video for a brief explanation : hidden link All forms are in English (Language configuration), none of them are in Arabic and consequently the original forms aren't connected to translations. In other words, we are overriding the form locale (the translation that you did) with the locale from language details (which is assigned as English), which is always English. Initially, when we installed WPForms on our servers, WPML automatically detected the correct language, which fixed the issue. But on your server, It didn't fix it this way. So you only have to manually edit the language of the form to match the language of the translated String (ARABIC) I hope this made things clearer, Have a good day! |