language detection does not work for en-gb and en-us in one installation
Hi there,
The availableLanguages array on top of getSysLanguages function still includes both languages but only with short isocode "en". So there is no difference between the languages anymore and the further code generate a availableLanguages array with only the latter language (mostly en-us).
I added a patch which cleans up the function getSysLanguage a little bit as TYPO3 version 6.2.0 and extension static_info_tables are already dependencies anyway and don't need to get checked there again. Furthermore I fixed this problem by directly selecting the country isocode and using the "en-gb" code directly if available as array key.
It is tested and worked very well for me. I'd love to see this patch included in the next version :-)
Kind regards
Sonja