Support Forum

WPML plugin not compatible with Simple:Press?

19 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

The forum utilises a single page for display but what do you mean by ‘help’? A ‘help’ page would be outside of the forum display surely.

SJ Sjoerd
Sjoerd
Member

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 …   

YS Yellow Swordfish
Yellow Swordfish
Member

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…

SJ Sjoerd
Sjoerd
Member

A Java script is used by WPML to do this I understand …

https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-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 🙂 

MP Mr Papa
Mr Papa
Member

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…