[Resolved] theme string translations are not showing
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate your website theme strings into Chinese using WPML, but after updating WordPress to version 8, the translations are not appearing. Solution: First, check if this issue started after updating to WordPress 6.7. If so, we recommend reading the errata on missing translations on the front end: https://wpml.org/errata/missing-translations-on-front-end/. Additionally, we have released another errata that includes a manual fix for WPML > String Translation. This fix should be applied manually until the upcoming update for WPML String Translation resolves this issue. You can find the errata here: https://wpml.org/errata/wordpress-6-7-mo-files-not-loaded-and-leading-to-missing-translations-on-front-end/.
If the solution provided does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly 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 further assistance is needed, please open a new support ticket 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 am trying to translate my website theme strings into Chinese using WPML. The issue started after WordPress was updated to version 8. My website is hidden link.
Symptoms:
Theme string translations are not showing.
Questions:
Why are my theme string translations not appearing after the WordPress update?
How can I resolve the issue of missing theme string translations?
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there.
After that, if the string is not showing as translated yet, so as follows:
- Go to WordPress Dashboard > WPML > String Translation.
- Scroll down and check the "Look for strings while pages are rendered" checkbox.
- Reload the front end of the website and see if the string are now showing as translated.
- If so please do as follows:
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > WPML > Support > Troubleshooting (link)".
- Click the "Show custom MO Files Pre-generation dialog box" button.
- After that, a pop up will show. Click the blue button and wait for the process to finish.
Thanks for your reply! I have followed your instructions, but it still doesn't work.
However:
check the "Look for strings while pages are rendered" checkbox.
- Reload the front end of the website and see if the string is now showing as translated
This works, but it doesn't work after I TURN OFF it.
I found that only one language (Chinese Simplified) string (BY theme domain) can't be translated, which is what I import po. file (edit by POEDIT). I tried adding a new different language under the same string, and it can be translated.
I have closed the website and tried many ways to solve it, but it still doesn't work.
Please help me solve this problem, thank you very much!