LanguageNegotiationSelected is weird

Created on 21 October 2016, almost 9 years ago
Updated 16 August 2025, about 2 months ago

Problem/Motivation

Sorry for the undescriptive issue title, I really didn't find better words to describe this.

If you choose Site's default language for the Selected language negotiation, LanguageNegotiationSelected will return site_default. LanguageNegotiator::negotiateLanguage() will try to find a corresponding key in the list returned by LanguageManager::getLanguages(), but there will never be such a key.

Because generally Selected language is the last negotiation plugin, what will happen is that no plugin was able to find a language, so LanguageNegotiator::initializeType() will fall back to the site default language... ...which is precisely the expected behavior.

So this is only a functional bug if Selected language is not the last negotiation plugin, which is inherently pointless, though. The behavior is still, well, weird.

Proposed resolution

?

Remaining tasks

User interface changes

None.

API changes

?

Data model changes

?

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component

language system

Created by

🇩🇪Germany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
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

    There has been no discussion here for 8 years, perhaps suggesting this is no longer relevant? Is this something that requires documentation?

    Since we need more information to move forward with this issue, I am keeping the status at 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