Passer au contenu Passer à la barre latérale

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.

Ce sujet contient 2 réponses, a 0 voix.

Dernière mise à jour par thierryM-7 Il y a 3 mois et 3 semaines.

Assisté par: Claudio Palacios.

Auteur Messages
janvier 22, 2026 à 9:56 am #17753040

thierryM-7

J'ai 2 modèles de menus sur le site (desktop et mobile) auquel j'ai ajouté des informations. Quand je charge les menus, tous les menu WordPress affichés sont bien traduits en allemand, mais tout le contenu personnalisé autre textuel reste affiché en français.

J'ai essayé de vider le cache de WPML, de vider le cache général, de supprimer puis recreér les modèles en allemand et le problème persiste.

janvier 22, 2026 à 3:01 pm #17754369

Claudio Palacios
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/La_Paz (GMT-04:00)

Note: To provide you with a faster and more accurate response, I'm using a Large Language Model (LLM/AI) to help draft this message. However, I am a human support agent analyzing your issue and providing this response.

---

original version:

Hello Thierry,

My apologies for the confusion with our AI assistant. I understand your situation clearly:

-Your translations exist in the WPML translation editor
-WordPress menus display correctly in German
-Elementor text widgets (standard text editor content in your templates) show French instead of German on the frontend

Since the translations exist but don't display, this is a template rendering or assignment issue.

To resolve this, Could you please provide me the following information:
1. WordPress admin access (temporary account)
2. URL of a German page where the problem is visible
3. exact steps to reproduce the issue

I will identify and fix the issue directly.

Best regards,
Claudio

---

translated version:

Bonjour Thierry,

Toutes mes excuses pour la confusion avec notre assistant IA. Je comprends clairement votre situation :

-Vos traductions existent dans l'éditeur de traduction WPML
-Les menus WordPress s'affichent correctement en allemand
-Les widgets de texte Elementor (contenu texte standard dans vos modèles) s'affichent en français au lieu de l'allemand sur le site

Puisque les traductions existent mais ne s'affichent pas, il s'agit d'un problème de rendu ou d'affectation de modèle.

Pour résoudre cela, pourriez-vous me fournir les informations suivantes :
1. Accès admin WordPress (compte temporaire)
2. URL d'une page en allemand où le problème est visible
3. étapes exactes pour reproduire le problème

Je vais identifier et corriger le problème directement.

Cordialement,
Claudio

janvier 22, 2026 à 10:27 pm #17755608

Claudio Palacios
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/La_Paz (GMT-04:00)

Hi,
Good news! I've looked into your translation issue and found that the main problem you reported has already been addressed in our codebase.
However, while testing with your site backup, I discovered an additional issue: menu components were not translating properly. I've extended the existing fix to include support for:
Navigation menus
Mega menus
Header/Footer elements

You can wait for the Next WPML Release or Apply Immediate Workaround.
If you need the menu translation fix right away, you can manually update the file:

wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/
classes/Integrations/Elementor/class-wpml-elementor-translate-ids.php

Find this code (around line 98):

private function should_translate_template() {
	return $this->is_WP_widget_call()
	|| $this->is_shortcode_call()
	|| $this->is_template_widget_call()
	|| $this->is_form_ajax_handler_call();
}

/**
 * @return bool
 */
private function is_WP_widget_call() {
	return $this->debug_backtrace->is_class_function_in_call_stack(
		'ElementorPro\Modules\Library\WP_Widgets\Elementor_Library',
		'widget'
	);
}

/**
 * @return bool
 */
private function is_shortcode_call() {
	return $this->debug_backtrace->is_class_function_in_call_stack(
		'ElementorPro\Modules\Library\Classes\Shortcode',
		'shortcode'
	);
}

/**
 * @return bool
 */
private function is_template_widget_call() {
	return $this->debug_backtrace->is_class_function_in_call_stack(
		'ElementorPro\Modules\Library\Widgets\Template',
		'render'
	);
}

/**
 * @return bool
 */
private function is_form_ajax_handler_call() {
	return $this->debug_backtrace->is_class_function_in_call_stack(
		'ElementorPro\Modules\Forms\Classes\Ajax_Handler',
		'ajax_send_form'
	);
}

Replace with:

private function should_translate_template() {
	$wpWidgetCall        = [ 'ElementorPro\Modules\Library\WP_Widgets\Elementor_Library', 'widget' ];
	$shortcodeCall       = [ 'ElementorPro\Modules\Library\Classes\Shortcode', 'shortcode' ];
	$templateWidgetCall  = [ 'ElementorPro\Modules\Library\Widgets\Template', 'render' ];
	$formAjaxHandlerCall = [ 'ElementorPro\Modules\Forms\Classes\Ajax_Handler', 'ajax_send_form' ];
	$refreshLoopGridCall = [ 'ElementorPro\Modules\LoopFilter\Data\Endpoints\Refresh_Loop', 'get_updated_loop_widget_markup' ];
	$navMenuCall         = [ 'ElementorPro\Modules\NavMenu\Widgets\Nav_Menu', 'render' ];
	$megaMenuCall        = [ 'ElementorPro\Modules\MegaMenu\Widgets\Mega_Menu', 'render' ];
	$themeBuilderCall    = [ 'ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager', 'do_location' ];

	return $this->debug_backtrace->are_functions_in_call_stack(
		[
			$wpWidgetCall,
			$shortcodeCall,
			$templateWidgetCall,
			$formAjaxHandlerCall,
			$refreshLoopGridCall,
			$navMenuCall,
			$megaMenuCall,
			$themeBuilderCall,
		]
	);
}

Note: remember doing a backup.

What this does:
Adds support for Navigation menus, Mega menus, and Theme Builder elements
After applying the fix:
Clear Elementor cache: Elementor → Tools → Regenerate CSS
Clear all other caches (WP Rocket, browser, etc.)
Test your translated pages

Let me know which option you prefer or if you need any assistance!

Best regards,
Claudio

janvier 23, 2026 à 8:13 am #17756075

thierryM-7

Hi Claudio,
Thanks for digging into this, it is indeed working !
Thanks a lot.