Project

General

Profile

Actions

Bug #23367

closed

HTTP_ACCEPT_LANGUAGE not respected in login screen

Added by Alienor.net almost 14 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-08-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The HTTP_ACCEPT_LANGUAGE header is not respected in login screen in one case :
If the first preferred language is 'en' or 'en.*', and there is a second preferred language that is set, the second preferred language is always chosen. The 'default' language should be chosen in this case.

That is due to the fact that t3lib_cs::getPreferredClientLanguage(), used for defining the login screen's language, uses t3lib_cs::$charSetArray to have the list of supported languages. As there is no 'en' entry in this array, it is considered as a non-supported language.

Having only 'en' as preferred language works because the function default is, indeed, the value 'default', when no valid language is found.

The proposed patch only adds 'en' => '' to the t3lib_cs::$charSetArray variable.
I haven't tested but I guess 4.3 branch and trunk are also affected.
(issue imported from #M15449)


Files

class.t3lib_cs.php.patch (378 Bytes) class.t3lib_cs.php.patch Administrator Admin, 2010-08-13 12:11
Actions #1

Updated by Alexander Opitz over 10 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • Is Regression set to No

Hi,

as this issue is very old. Is this feature missing in newer versions of TYPO3 CMS (6.1.7)?
If yes, can you provide a newer patch against master by using Gerrit? http://wiki.typo3.org/CWT

Actions #2

Updated by Alexander Opitz almost 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF