This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to translate hardcoded theme strings using WPML and have enabled the 'Look for strings while pages are rendered' setting. Despite regenerating the .mo files and configuring a text domain, the French translations are not displaying correctly. Instead of showing 'Bleu = événement OCO', the text displays in English as 'Blue = OCO Event'.
Solution:
We recommend ensuring that you have used the Gettext functions to display these custom strings. For guidance on how to implement this, please refer to our documentation on Translating the Theme You Created.
If this solution does not resolve your issue or seems outdated, 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.
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.