Ce sujet est résolu. Voici une description du problème et de la solution.
Problem: The client was facing issues with translating the footer into French on their WordPress site. The English footer was appearing instead of the French one, despite attempts to edit it directly in the footer editor. Additionally, there was a PHP error related to the Complianz GDPR plugin, indicating that translation loading was triggered too early. Solution: We advised the client not to edit the translation directly from the footer editor but to use WPML > String Translation to manage footer translations. For the PHP error, it was identified as a known issue with a fix available in the newer version of the Complianz plugin. We provided links to the relevant documentation and updates:
We corrected the language settings for the footer strings from English to French to resolve the translation issue.
If this solution does not resolve your issue or seems irrelevant due to updates or different circumstances, 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 French Support Forum.
Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.
Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.
Contexte de la question:
I tried to change the footer and I end up with the English Footer, but in French, and can't find the way to make the French one and translate the English correctly. The issue can be seen at lien caché.
Symptômes:
Instead of seeing the expected French footer, I see the English footer. Look at the bottom of the page for 3 links after the logo and before the Social buttons.
Questions:
How can I correctly translate the footer into French?
Why is the English footer appearing instead of the French one?
Please let me know if you would like to continue our conversation in French or English as this is the French Forum.
From the screenshot you shared, this seems to be a footer applied directly from the theme options,
The issue here, is that you are not supposed to create/edit the translation directly from the footer editor, but rather, you need to translate it from WPML > String translation.
In your case, create the French footer, then go to WPML > String translation and search for the phrases and links in the footer there.
If you are still not able to translate it, please share access to your site, I will take a closer look at it and see how we can translate it.
Below you will find the access form where you can share your credentials privately.
Yes, but the site is currently experiencing a critical error, I just tried to login but the site is not working for me, could you please check again? : lien caché
Here the error.
( ! ) Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
complianz-gdpr
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the
init
action or later.', $version = '6.7.0' ) .../l10n.php:1370
19 0.8112 63719720 wp_trigger_error( $function_name = '', $message = 'Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
complianz-gdpr
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the
init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7'..., $error_level = ??? ) .../functions.php:6054
20 0.8115 63831480 trigger_error( $message = 'Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
complianz-gdpr
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the
init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7'..., $error_level = 1024 ) .../functions.php:6114
For the footer, it turns out the footer is built directly from the theme option pages : lien caché
This kind of content can be translated from WPML > String translation as shown here : lien caché
In this case, it turns out many strings are detected as english instead of french which creates a confusion, so I simply corrected that by selecting the french string and changing its language to french : lien caché
The footer should now be translated correctly : lien caché