Wrong language used

Issue #16 resolved
Michele Locati created an issue

Hi Fabian,

Korvin told me that PortlandLabs is using your package to display the cookie agreement.

I noticed that it's using a wrong language for me. The message is in Estonian when browsing from 151.0.155.178, and Hungarian when browsing from 87.1.77.135, but both IP addresses are located in Italy...

Ciao! Michele

Comments (6)

  1. Fabian Bitter repo owner

    Hi Michele,

    the language is not depending on the IP address. If auto detection mode is enabled (default) the language is depending of the preferred language settings from the browser (HTTP_ACCEPT_LANGUAGE). Otherwise it is possible to set the language manually.

    If PortlandLabs need GEO targeted language detection i could implement this in the next release. A GEO database by Maxmind is already part of the package.

    Fabian

  2. Michele Locati reporter

    the language is not depending on the IP address. If auto detection mode is enabled (default) the language is depending of the preferred language settings from the browser (HTTP_ACCEPT_LANGUAGE). Otherwise it is possible to set the language manually.

    Are you sure this is working? I don't think that PortlandLabs forced Hungarian or Estonian, and for sure I don't have those two languages in my browsers...

    If PortlandLabs need GEO targeted language detection i could implement this in the next release. A GEO database by Maxmind is already part of the package.

    I absolutely don't know. And please note that since version 8.3.0 concrete5 already implements geolocation features.

  3. Fabian Bitter repo owner

    If you don't have this languages in your browsers there seems to bet a bug in the logic. I will check this and i will implement language detection by GEO in the next release. I know that since version 8.3.0 this is already part of the core but the add-on is downward compatible to 5.7.0.4.

  4. Fabian Bitter repo owner

    Hello, i have released a new version (v. 1.0.1.4). In this version is a new language detection method by IP Address.

  5. pixeljunkie

    Hallo Fabian - ich habe vor kurzem ein Paket mit 5 Lizenzen gekauft. Wie kann ich die auf die neue Version updaten? Mein deutschsprachiger Kunde stört sich sehr daran, dass auf dem Mobiltelefon die englische Version angezeigt wird.

  6. Log in to comment