2012-05-05, 22:06:45
Draxeiro Wrote:However instead of just showing the actually existing pages in German, it shows the german pages PLUS the default Dutch ones that aren't available in German.
Subsequently clicking on a German page WILL then show only the actually available German pages but I cannot seem to make the language switch point to the just-german pages.
This happens, if you switch to german on a page that does not have a german version.
See http://mvlcek.bplaced.net/ (which currently works like this, but hides sub pages - I18N_FILTER_MENU | I18N_FILTER_LANGUAGE | I18N_FILTER_CURRENT):
- if you switch the language on the index page (which has a german version), it will work as you want it to work
- if you go to e.g. getsimple (which has no german version) on the english site and then switch to german, it will not find a german version and show the english page, thus the language is english and the english menu is shown. The same happens if you manually switch to a non-existing language, e.g. /?setlang=fr.
Draxeiro Wrote:By the way, if I would want to use %language% or %nondefaultlanguage%? Should that be set up in the permalink field or rather somewhere in the htaccess file? Tried it in the permalink field but then it couldn't find the pages with the _de addition anymore.
See here.