• So far impressed with the plugin, seems like a good alternative to WPML (thanks for putting US and GB English separately!) and not putting the language in the URLs is a much needed feature.

    As I’m trying to differentiate between American and British visitors, unfortunately the browser language settings is not sufficient. I’m already using geolocation to set some other things in my theme, and I’d like to use it to set the language used by Polylang (I think WPML has a switch_lang() function for this). Is there a way to do this?

    Thanks

    https://wordpress.org/plugins/polylang/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I set the language in PHP?’ is closed to new replies.