• Resolved Michael Habib

    (@michaelhabib16)


    I keep getting sugustions by wordpress.org to contribute in Arabic, even though I have not used arabic anywhere. How do they track and recommend which language I should contribute in ?

    Do they use a 3rd party service or done with some WP plugin ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    It should be coming from your browser language primarily, but I believe there is also an IP-based geo-location component which sometimes can get confused if you’re close enough to another country or using a VPN.

    Thread Starter Michael Habib

    (@michaelhabib16)

    I’m in australia, so IP confusion is out of the picture i think (not using a VPN).
    Strangely I don’t get that message when in incognito or a different browser! the question now is : WHERE does WP get this info (the only time I used arabic was on my Android phone and never on this PC but used the same google / chrome account)

    Moderator James Huff

    (@macmanx)

    It’s definitely from browser language and IP, and since it works in Incognito mode, time to rule out a few things, as both cookies and extensions could interfere.

    First please make sure that your browser is up to date: https://browsehappy.com/

    Please try updating your browser or switching to a different browser if it is not.

    If it is, please do these two things:

    1. Try clearing your browser’s cache and cookies.
    2. Try with all browser extensions or add-ons temporarily disabled.

    Please let us know how each step goes for you and which browser (and version) you’re using if you’re still having trouble.

    Thread Starter Michael Habib

    (@michaelhabib16)

    I’m referring to this line in arabic, which recommends I contribute in Arabic. Everything else in chrome AND wordpress.org is still in english.
    I think I’m not explaining the question correctly: I’m interested in knowing how ( the technical details) and what plugin and/or code WP uses to decide to show me that message. I don’t have any arabic on this PC, so if WP communicating with the browser to detect what other languages I use, how exactly are they doing that (like what browser API are they calling, etc )

    Moderator James Huff

    (@macmanx)

    Yes, I know what you’re referring to.

    It takes your browser language first, then it takes your IP’s Geo location if it needs more info or no language is provided.

    Again, the fact that you don’t have the problem in an Incognito window tells me something in your browser is doing this, something that Incognito disables, like extensions, or doesn’t have, like your cookies.

    So, again, please make sure that your browser is up to date: https://browsehappy.com/

    Please try updating your browser or switching to a different browser if it is not.

    If it is, please do these two things:

    1. Try clearing your browser’s cache and cookies.
    2. Try with all browser extensions or add-ons temporarily disabled.

    Please let us know how each step goes for you and which browser (and version) you’re using if you’re still having trouble.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Really, Check your browser settings for “languages”.

    All modern web browsers send a language header saying what languages they will accept. This is how the website knows what languages to show you. It is a setting in your web browser. It has nothing to do with GeoIP.

    chrome://settings/?search=languages

    If you want the technical details, then that setting in the web browser basically sets the “Accept-Lang” header, which then is sent to every website you visit. It just so happens that we read that header and then use it accordingly.

    Thread Starter Michael Habib

    (@michaelhabib16)

    Thank you, found it in the Chrome language settings as you recommended (presuming Chrome added Arabic to the list after I use the Arabic keyboard on my android with the same linkeds google account) .
    Further research led me to the following solution for detecting preferred languages with JS : https://stackoverflow.com/questions/1043339/javascript-for-detecting-browser-language-preference


    Thank you very much, now I understand how it all works 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.