This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing issues with mapping a custom language code for Chinese Simplified (zh-CN) in WPML. Despite multiple attempts to save the settings, the language showed errors and was not mapping correctly, which prevented automatic translations.
Solution:
We recommended the following steps:
1. Ensure a full site backup is created.
2. Replace the function
get_languages_supported_by_automatic_translations()
in the file
\sitepress-multilingual-cms\classes\ATE\API\class-wpml-tm-ate-api.php
with a new function that includes a case mapping for 'zh-CN' to 'zh-cn'.
3. Save the changes and verify if the issue is resolved.
This solution might become outdated or may not directly address similar issues due to different configurations or WPML updates. If this solution does not resolve your issue, or if you encounter other problems, please visit our support forum and open a new ticket. We also 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.
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.
This topic contains 2 replies, has 1 voice.
Last updated by 7 months, 2 weeks ago.
Assisted by: Carlos Rojas.