Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
WPML plugin not compatible with Simple:Press?
Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2015 - 9:27 am

OK, thanks. I installed the plugin and have been searching for quite some time where te switch is located in the interface. Can't find it. As I understand it this switch must be visible for the end user (member)? 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2015 - 9:33 am

By default it is located below the stats area at the top of the footer of the forum.
Remember that the languages list will only show if there are more than one language MO files available. If there is just one then it will not be displayed.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2015 - 10:58 am

OK, thanks! It was not visible because my child theme was used to remove most of the footer. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2015 - 12:19 pm

Ah - that explains it of course. You can place it wherever you prefer it to be.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
May 19, 2015 - 4:56 am

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?  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 19, 2015 - 5:27 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
May 19, 2015 - 6:21 am

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 ...   

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 19, 2015 - 6:49 am

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
May 19, 2015 - 7:55 am

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 🙂 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 19, 2015 - 11:01 pm

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620