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?
Luglio 12, 2024 alle 10:01 am
Gestione del consenso per i cookie
Utilizziamo i cookie per ottimizzare il nostro sito web e i nostri servizi.
Il tuo consenso ci permette di elaborare dati come il comportamento di navigazione.
Il mancato consenso potrebbe compromettere alcune funzionalità.
Funzionale
Sempre attivo
Necessario affinché il nostro sito web funzioni e comunichi correttamente.
Preferenze
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistiche
Li utilizziamo per analizzare le statistiche del nostro sito.
Le informazioni raccolte sono completamente anonime. L'archiviazione tecnica o l'accesso che viene utilizzato esclusivamente per scopi statistici anonimi. Senza un mandato, la conformità volontaria da parte del tuo fornitore di servizi Internet o altri registri di terzi, le informazioni memorizzate o recuperate per questo scopo da sole non possono generalmente essere utilizzate per identificarti.
Marketing
Questi cookie tracciano la tua navigazione per fornirti annunci pubblicitari pertinenti.