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?
12 7 月, 2024 于 10:01 上午
管理 Cookie 同意
我们使用 cookies 来优化我们的网站和服务。 您的同意允许我们处理浏览行为等数据。 不同意可能会影响某些功能。
功能性
始终启用
为了我们的网站正常运行和通信所需的信息。
首选项
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.