• Hi

    I am developing a multilanguage WP/BP site and need to show the site in the users language.
    So I want to switch get_locale to the accept-language of the browser.

    How can I do that?

    Thanks
    Raphael

Viewing 2 replies - 1 through 2 (of 2 total)
  • In the past, I have used Maxmind’d GeoIP data for this tye of purpose. https://www.maxmind.com/en/home

    We used it for an ecommerce site, not sure if there is a better way currently because it has been a few years.

    Thread Starter RaphaelJeger

    (@raphaeljeger)

    Thanks!
    But my question was not about where to get the language-info from but how to SET it in WP 4.1 (since it is removed from wp-config.php).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Automatically switch locale depending on browser setting’ is closed to new replies.