Support » Plugin: Sublanguage » Location

  • Resolved Laura

    (@syccylinders)


    Hey Maxime, does your plugin do some localization by ip or something to redirect English speaking people to the English language? or does your plugin do anything like that?

    • This topic was modified 8 months, 3 weeks ago by  Laura.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author maximeschoeni

    (@maximeschoeni)

    Hello Laura,

    The plugin can figure the user language by checking the “accept-language” variable sent by browser in every http request. This reflect the language of the browser application, not the location (if a user lives in China but his web browser is configured in italian, it will be italian).

    But there is no cookie or stuff to remember what a user language is. So on every page, if the language isn’t specified by url (like mysite.com/some-page) the user will be redirected either to mysite.com/en/some-page or mysite.com/es/some-page (or whatever your languages are).

    For activation, go in Sublanguage options and check both “Show slug for main language” and “Auto-detect language”.

    Laura

    (@syccylinders)

    I have tried to put my browser in English to enter the page and continues redirecting to the Spanish language… I don’t know if you can try to enter my website: http://www.teemovsall.com and see if it works for you and redirects you to http://www.teemovsall.com/en/

    Thank you!

    Plugin Author maximeschoeni

    (@maximeschoeni)

    Yes it’s actually redirecting to https://www.teemovsall.com/en/ by me

    Can you go there: https://www.cylog.org/headers/ with your browser
    and tell me what is the “Accept-Language” value?

    Laura

    (@syccylinders)

    Yes! It’s working, I tested on other sites and it change language, thanks for verify me.

    Thanks a lot

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Location’ is closed to new replies.