Objectify configuration code for language negotiation plugins

Created on 4 January 2014, over 11 years ago
Updated 11 July 2025, about 19 hours ago

Updated: Comment #0

Problem/Motivation

#1862202: Objectify the language system moved most of the language negotiation code to classes. Configuration code for language negotiation plugins, which is rarely used, was held back to limit the size of the patch.

Proposed resolution

  1. Remove language_negotiation_url_* functions and just inject the config-factory into the settings form.
  2. Remove language_[g|s]et_browser_drupal_langcode_mappings() functions
  3. Move language_get_browser_drupal_langcode_mappings() to a utility method on LanguageNegotiator service, ensuring the plugins can be still made stateless

Remaining tasks

  1. Reviews

User interface changes

None

API changes

TBD

📌 Task
Status

Postponed: needs info

Version

11.0 🔥

Component

language system

Created by

🇮🇹Italy plach Venezia

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • API change

    Changes an existing API or subsystem. Not backportable to earlier major versions, unless absolutely required to fix a critical bug.

  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • 🇺🇸United States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024