Language detection browser vs user (browser always wins)

Created on 23 November 2016, almost 8 years ago
Updated 3 November 2024, 18 days ago

Problem/Motivation

When selecting Browser and User detection method, browser always has a bigger weight (is always applied).
in the attached example pictures the user(pkersten) has a language set as English and the default language for the browser is french.
When selecting browser method with a lower weight, the browser method wins vs the user method.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component

language.module

Created by

🇧🇪Belgium pkersten@pkconsult.be Bierghes

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    I tested this today on Drupal 11.x, standard install with French and Italian installed. Using the information in the issue summary I was not able to reproduce a problem with behavior of the Detection and Selection related to the User and Browser methods. I tried various combinations but never found a situation where the Browser method override the User method, when the Browser method was sorted lower in the list at the 'Detection and selection' page.

    Therefore, closing as outdated. If this is incorrect reopen the issue, by setting the status to 'Active', and add a comment explaining what still needs to be done. Also, add complete steps to reproduce.

    Thanks!

Production build 0.71.5 2024