[TYPO3-core] [TYPO3-project-4-3] Re: Class with method for getting the preferd browser language from a visitor (class.t3lib_langUtils)

Oliver Hader oliver at typo3.org
Sat Feb 28 11:32:47 CET 2009


Hi Rob,

Rob Vonk schrieb:
> Hi there,
> 
> I'm working on this bug:
> 
> http://bugs.typo3.org/view.php?id=7640
> 
> and to get the solution that Francois Suter proposes in the last note, i
> need to get the prefered language from the users browser. Yesterday i
> talked/irc-ed with Francois about a solution for it and we thought it
> would be best to create a new t3lib class with a method for fetching it.
> 
> This is my first attempt. I ran it through some formatting and
> commenting wizards from the extdeveval extension.
> 
> If you think this is a good solution, i'll start working on
> class.t3lib_beuserauth.php.

I guess that you wanted to write to the dev-list but then the post
finally made it to the core list... However, this list is only for
reviews on RFCs and not for discussions on TYPO3 development. I think
you knew that already... ;)

Some short words to the attached file:
* we have t3lib_div::getIndpEnv() already that is used to get
environment variables
* to get the best service by a "quality" out of the HTTP header we
should also use a common function (maybe in t3lib_div)
  (gzip_encode::gzip_accepted() could also make use of that new function)

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list