Plugin Author
Chouby
(@chouby)
Hi!
I just tested WPtouch free. I confirm your problem which seems to be due to the fact the the mobile menu does not use standard theme nav menu locations which are used by Polylang to set one menu per language.
Hi Chouby!
Thanks a lot for the fast reply. I also posted the same question to the WPtouch forum and sent an email to WPtouch support. Haven’t received anything from their side yet.
I am wondering whether I could somehow use the string translation feature in Polylang to translate the menu, but my coding skills are rather basic. Could this be an approach to solve the problem?
In case I decide to actually use WPtouch I would have to use the pro version anyways (for content reasons). So I am also hoping that their support will be more helpful once I purchase it.
So here’s what I got so far from WPtouch Pro support:
“WPtouch Pro currently only includes official support for WPML. What we can do is add this to the list of feature requests to consider for a later release. Looking back, there haven’t been other support requests for Polylang. So we hadn’t seen this reported before. So thank you for letting us know and for helping make WPtouch Pro even better. WPtouch Pro’s developers will consider the feature in a later release.”
After I begged them to look into it, I got this:
Martin [apparently one of the developers] took a look at this and some noticeable differences between WPML and Polylang are that:
“WPML stores translations as part of the post (presumably post meta), Polylang is a lot cruder, storing translations as separate pages & posts (with different URLs!) and simply recording a cross-reference between them.”
“The first issue is easy enough to diagnose: they’ve probably got WPtouch set to use “WordPress Pages” for the menu, which obviously just dumps everything out
Unlike WPML, which switches the contents of the menu items for the language you’re using, Polylang requires that you manually maintain separate menus for each language. We would have to completely rewrite sections of our menu module to allow customers to pick which menu is for which language. [Which is not in our current future plans.]”
I still cannot believe that it should be a big problem to make both plugins work with each other but unfortunately I don’t have the skills to do myself.
Somehow disappointed with the so-called PRO-support at WPtouch by now though. Guess I didn’t just waste the money for the WPtouch Pro license but also some hours of time.
Plugin Author
Chouby
(@chouby)
I confirm that WPML and Polylang manage multilingual menus in a very different way. Both are fine and work out of the box for themes using WP menus in the standard way. But since WP has its own way, I can understand that it would requirement a significant amount of work to make it compatible with Polylang.
I still don’t get it. Sorry. I mean in terms of the content, WPtouch seems to work great with Polylang
So the whole problem is a freakin menu???
Sorry, I am not a developer, maybe I think to simple, I don’t know, but I still don’t get the problem.
By the way, I am about to dump WPtouch, could you give any recommendations on theme switching plugins that work with polylang?
Maybe someone could help me with this: (my coding skills are somewhat limited)
Let’s assume I want to hardcode the menus into WPtouch.
I would simply first activate language-A, then copy the rendered code from page source, after that activate language-B and copy the rendered menu as well.
This is the code in WPtouch’s header-bottom.php file which calls the menu:
<?php if ( wptouch_has_menu( 'primary_menu' ) ) { wptouch_show_menu( 'primary_menu' ); } ?>
So my idea is now to replace that code with the two already rendered menus.
I just have no idea how to either show language-A or language-B depending on the selected Polylang language.
I suppose this should be possible though, right? (Yes, I am aware that this isn’t a very elegant solution, but my menus won’t change very often)
Could anyone help me here, please???