Your TYPO3 is configured for English and German
de-DE / de
en-US / en
Your browser returns the following locales:
array(3 items)
0 => 'de' (2 chars)
1 => 'en-US' (5 chars)
2 => 'en' (2 chars)
Fun-fact: That's the current setting of the german language Firefox.
I would expect the German version of the site to show. Instead the English version is delivered
This can be solved in language_detection/Classes/Negotiation/DefaultNegotiation.php by moving foreach ($compareWith as $function) { into the inner foreach loop.
Given the following:
Your TYPO3 is configured for English and German de-DE / de en-US / en
Your browser returns the following locales: array(3 items) 0 => 'de' (2 chars) 1 => 'en-US' (5 chars) 2 => 'en' (2 chars) Fun-fact: That's the current setting of the german language Firefox.
I would expect the German version of the site to show. Instead the English version is delivered
This can be solved in language_detection/Classes/Negotiation/DefaultNegotiation.php by moving
foreach ($compareWith as $function) {
into the inner foreach loop.