qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
553 stars 105 forks source link

different language shown in menu and unwanted redirects #715

Open tommibv opened 5 years ago

tommibv commented 5 years ago

Hello, I have a website which default language is italian, then english. The issue is that depending on which menù I last save (english or Italian) I can see only that menù even if I switch with the language switcher. Is there anything I can do?

herrvigg commented 5 years ago

I don't have any problem like this. It is quite unclear. What do you mean by menu, the nav menus (wp-admin/nav-menus.php) or the swtiching buttons? Why do you mention unwanted redirects in the title? Please describe your problem better, possibly with screenshots.

tommibv commented 5 years ago

Thank you for your reply, I got this: image with the nav menu which remain the same for both languages Italiano and English depending on which of them I save for last in this page: https://www.screencast.com/t/zAAHjzWu

tommibv commented 5 years ago

If I try to change language the menu remain the same

herrvigg commented 5 years ago

It looks like a problem with the switching buttons. Everything is handled in the client with javascript until you submit the new menus (all languages). Do you see any error in the browser console?

For more details see: https://github.com/qtranslate/qtranslate-xt/blob/master/admin/js/nav-menus-exec.js. To debug, just set define( 'SCRIPT_DEBUG', true); in your wp-config.php so it can load the non-minified versions. Then you can patch any source js as you want. NB: i know this is a very old-school method. All the integration framework should be refactored.

herrvigg commented 4 years ago

@tommibv can you retry with the last release (3.7.1)?

I'd also need to know your settings, especially: