Bertr4nd
Forum Replies Created
-
Forum: Plugins
In reply to: [mqTranslate] store language choice in a cookiejust FYI above modifications (almost emptying qtranslate_convertURL and a little cookie modifications given above) are still working with latest (2.6.7).
It would be extremely nice to have this available as an option (e.g. using GET, a cookie, and bypassing convertURL) so hacking with each version wouldn’t be necessary, I completely understand this is not the best-for-everyone solution, but for a site which needs to use cookies anyway for several other reasons, it’s really smooth and simple.Forum: Plugins
In reply to: [mqTranslate] store language choice in a cookiesorry about my previous post that may accidentally sound a bit paranoid, it wasn’t on purpose 🙂 !
When using a cookie to store language selection, you no longer need url conversion, hence the qtrans_convertURL function is useless – as it is one of the core mqtranslate function this is also the one that may lead to certain troubles when used with complex plugins such as woocommerce.
To have everything working fine with the latest (2.6.6.3) version, the above hack works fine, but you will also have replace the whole wonderful qtrans_convertURL function by
function qtrans_convertURL($url='', $lang='', $forceadmin = false, $forceaddlang = false) { return $url; }Of course this use of mqtranslate is not really SEO friendly (but neither is the use of the query string language selection) but the user experience (in the case of the use of woocommerce both for customer and store admin) is much smoother.
Forum: Plugins
In reply to: [mqTranslate] store language choice in a cookielooks like the latest update broke (among other things) my hack…
I don’t see what this would happen, on purpose ?
I see no new functionalities replacing it, plus menus are now broken and I can no longer use my own language selectors in menu using query string !Forum: Plugins
In reply to: [mqTranslate] store language choice in a cookieseemed to work with a website with woocommerce and qtranslate