Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong language showing in frontend #1423

Open
rohandevwo opened this issue Nov 22, 2024 · 1 comment
Open

Wrong language showing in frontend #1423

rohandevwo opened this issue Nov 22, 2024 · 1 comment
Labels
maybe bug Potential bug, to be investigated

Comments

@rohandevwo
Copy link

There are 2 languages in my website English and french. I have set English as default language in my website. But in frontend when I open any page by default french language is opened. Could you please check this issue??

WordPress version: 6.7.1
Plugin version: 3.9.3

@rohandevwo rohandevwo added the maybe bug Potential bug, to be investigated label Nov 22, 2024
@Komarovski
Copy link
Contributor

Komarovski commented Jan 12, 2025

Are you sure it's not a caching problem?
Check the URL by opening it in incognito mode. If in incognito mode you see the correct language version, such behavior could be caused by caching settings. Moreover, some caching settings could lead to showing the wrong language even in incognito mode.

For example, if you're using LiteSpeed Cache, you need to add a language vary to your .htaccess file. This way, LiteSpeed will know that it should save separate cached pages for each language:

<IfModule LiteSpeed>
RewriteEngine On
RewriteRule .? - [E=Cache-Vary:qtrans_front_language]
</IfModule>

If you use other caching plugins, like W3 Total Cache, etc., check their documentation on how to add cookie vary qtrans_front_language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe bug Potential bug, to be investigated
Projects
None yet
Development

No branches or pull requests

2 participants