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
?
Comments