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.
4 Answers
This might help: http://www.gish.se/wg-qtranslate.zip – download and install, then fix plugin, changing:
foreach($content as $language => $lang_text) {
$lang_text = trim($lang_text);
if(!empty($lang_text)) $languages[] = $language ;
}
to
foreach($content as $lang => $lang_text) {
$lang_text = trim($lang_text);
if(!empty($lang_text)) $languages[] = $lang ;
}
taken from http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=2958, works in most cases