Support Forum
Yes I managed to put the language switch at the top! Now I am still wondering if it is possible to improve the setup. In WPML you create a page for each language: e.g. I have a Dutch webpage for help and an English webpage for help and depending on the language of your browser you visit the page of your language for help. I assume it is not possible to do the same with the Forum page because you can only put the Forum on one specific page?
Yes 'help page' was just an example of WPML usual conduct . E.G. if someone from the UK or US visits my company website they will be automatically directed to pages in their own language. I was thinking about the same behaviour for the page where you see the Simple Press interface. However I don't think it is possible at the moment. Another option: could PHP be used to show the Forum interface based on the language of the browser? Well I have to study more PHP for that. Show SP interface in Dutch when browser is nl_NL... in all other cases show interface in UK language. Something like that ...
That's an interesting question.
Simple:Press uses the language that WordPress dictates is the site language (unless the user has overridden this with their cookie for the selection tool). I do not know anything about how WPML overrides the WP option setting - i.e., if it actually tries to change it or just redirects it in some way. It may be possible to hook into that...
YELLOW
SWORDFISH
|
A Java script is used by WPML to do this I understand ...
https://wpml.org/documentation.....-language/
However it redirects to another page and for SP the idea would be to read the browser language and then based on that finding decide what language interface to use for the visitor 🙂
well they do allude to potential problems... we dont use js redirects like that... but we do have our own pretty permalinks and url rewrite magic (using wp api)...
all simple press content is displayed on a single wp page.. so its likely confused by that...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)