Language Switcher Widget does not switch languages
-
At the moment my site keeps displaying Russian version, in front-end view, and fails to switch into English.
The switch is set as a widget in the site header.
The back-end (wp-admin) switch seems to work Ok. But, I don’t really know since I don’t have my own Russian text on the back-end.
In the old “qtranslate” I had the switch working by just echoing “qtrans_generateLanguageSelectCode(‘both’) output. Since “qtrans_generateLanguageSelectCode” is not available in “qtranslate-x”, I had to modify my code to call the “qtranxf_generateLanguageSelectCodeit” instead. To test the change I switched from English to Russian, and ever since the site remains in Russian.
Removing “qtranxf_generateLanguageSelectCodeit” and replacing it with the widget has not helped.
I did some experiments with cookies, and seem that the “qtranslate-x” switcher somehow captures the present cookie setting and use it, while ignoring at all which button is clicked. When I remove ‘qtranslate-x’ cookies in browser, the widget switches to the language I want. But, then it seem to get stuck again.
This may make sense for visitors who are one-language only: switch once, and never worry after this.
However, much of content on the site is meant to serve 2-language visitors, and for them this behavior is a nuisance.
Can we have an option for a default behavior?
Please, advise.
https://asechka.com
- The topic ‘Language Switcher Widget does not switch languages’ is closed to new replies.