Background of the issue:
I'm trying to translate my site from French to English by hand (no automatic translation yet). When I enable the option 'Show a lang selector in the footer' in WPML settings, two languages are shown. However, on a product page, even if everything is translated to English, the English choice won't appear. When I manually change the current language by adding lang=en in the URL, I can see the page is fully translated. There are sync problems between product pages: modifications in the block editor 'Gutenberg' appear on the French version but not on the English version unless I manually add lang=en in the editor URL. Additionally, when I add the 'lang selector' block in the Gutenberg editor, it appears briefly during page load and then disappears. I use string translation for translating texts in blocks and custom plugins.
Symptoms:
The language selector block disappears quickly, English language option doesn't appear on product pages, and there are synchronization issues between language versions in the Gutenberg editor.
Questions:
Why does the lang selector block disappear when the footer lang selector works well?
Why doesn't the English language option work on product pages?
Why are there sync problems between language versions in the Gutenberg editor?
Is it possible to show the English option even if some translations are missing?
julio 12, 2024 a las 10:01 am
Gestionar el consentimiento de cookies
Utilizamos cookies para optimizar nuestro sitio web y nuestros servicios. Su consentimiento nos permite procesar datos como el comportamiento de navegación. No dar su consentimiento puede afectar a algunas funciones.
Funcional
Siempre activo
Necesario para que nuestro sitio web funcione y se comunique correctamente.
Preferencias
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Estadísticas
Las utilizamos para analizar las estadísticas de nuestro sitio. La información recopilada es totalmente anónima.El almacenamiento o acceso técnico que se utiliza exclusivamente con fines estadísticos anónimos. Sin una citación, el cumplimiento voluntario por parte de su proveedor de servicios de Internet, u otros registros de terceros, la información almacenada o recuperada solo para este propósito generalmente no puede usarse para identificarlo.
Marketing
Estas cookies rastrean su navegación para proporcionar anuncios relevantes para usted.