I have installed the WPML plugin on my website and configured the settings properly. However, the translations are not working as expected. When I visit the website, only the English flag appears in the language switcher, and the French flag is not displayed.
Thank you for contacting WPML support. While you wait for assistance from one of my colleagues, allow me to offer some initial debugging steps to help resolve the issue promptly.
1) Navigate to Translation Management and filter the dashboard to "pages". Check if the translated page displays a green checkmark, indicating it's fully translated.
2) Edit the English language page. In the WordPress backend, use the language switcher on the top admin bar to switch to your translated French page. Confirm if the translated page remains in draft status. If it does, please publish the page, and it will appear on the frontend.
I hope these steps assist in diagnosing the issue. Let me know if you require further assistance.
Please note that custom code is outside the scope of our support, however, I will do my best to help you resolve this issue.
From the looks of it, the page is translated into French, however, the bookings are not pulled into French, meaning that they are most likely not translated.
Are these created with CPT ? Can you please verify that the bookings are translated as well
Please try the steps recommended in your previous thread with our team and let me know your results
We recommend the following steps to resolve the issue:
1) Clear all types of caches to ensure the issue still exists.
2) Navigate to WPML >> Languages >> Make themes work multilingual.
3) Select the Adjust IDs for multilingual functionality option.
4) Save the changes.
5) Go to Settings >> Permalinks.
6) Resave the settings.
They provided me a sql query for the previous website to fix the issue. Maybe you can provide me the sql query and I will run it and maybe it can help in resolving the issue.
we recommend taking a full site backup. Then, run the following SQL query through tools like PHPMyAdmin:
UPDATE wpwj_posts AS posts_translated JOIN ( SELECT trans_attachments.element_id AS translated_attachment_id, (SELECT posts_new_parent.ID FROM wpwj_posts AS posts_new_parent INNER JOIN wpwj_icl_translations AS trans_new_parent ON posts_new_parent.ID = trans_new_parent.element_id WHERE trans_new_parent.trid = ( SELECT trid FROM wpwj_icl_translations WHERE element_id = posts_original.post_parent AND element_type LIKE 'post_%' ) AND trans_new_parent.language_code = trans_attachments.language_code LIMIT 1) AS new_post_parent_id FROM wpwj_icl_translations AS trans_attachments INNER JOIN wpwj_icl_translations AS trans_original ON trans_attachments.trid = trans_original.trid AND trans_original.element_type = 'post_attachment' AND trans_original.source_language_code IS NULL INNER JOIN wpwj_posts AS posts_original ON trans_original.element_id = posts_original.ID WHERE trans_attachments.element_type = 'post_attachment' AND trans_attachments.source_language_code IS NOT NULL ) AS updates ON posts_translated.ID = updates.translated_attachment_id SET posts_translated.post_parent = updates.new_post_parent_id;
Notice the SQL Query is using wpwj_ for ' wpwj_posts' if your current site has a different prefix, please make sure to adjust the SQL query accordingly
After running the query, if the problem persists, update one of the English posts by making a minor edit to the content to refresh the translation settings and then update the French translations.
I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.
Thank you,
Bobby
The topic ‘[Closed] Website not translating to French’ is closed to new replies.