I know qTranslate has the option to hide untranslated content, but that doesn’t seem to work. I.e: I have a website with three languages: Dutch, French and English. There is one particular page that has some subpages that are only available in Dutch. I want them to show up on the Dutch website, but hide them completely from the French and English site. Like so:
- MenuItem1
- MenuItem2
- MenuItem2.1
- MenuItem2.2
- MenuItem3
So MenuItem2 and it’s subpages are only available in Dutch. I want them hidden on the English/French website.
Is this possible with qTranslate, or another plugin? Or is there a piece of code that will allow this?
Thanks.
This might help: http://www.gish.se/wg-qtranslate.zip – download and install, then fix plugin, changing:
to
taken from http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=2958, works in most cases
Little hack in my submenu code:
Added the
If structure here.
I create a very simple plugin which enables hiding menu items in some languages, but show them on others.
After installing my plugin and enabling it, you just need to remove the title from the unwanted language, but leave the string in the others.
For example if you want to show “Company Profile” only in the English menu, but not in the French menu (or any other language), you set the menu item title to: “Company Profile”.
The default behavior of qTranslate would give you item “Company Profile (English)” in the French menu.
Enjoy: http://www.hoojima.com/wordpress/qtranslate-remove-menu-item.zip
I did the following in my theme’s functions.php:
It seems to work in my case 🙂