Closed fritzmg closed 1 year ago
Also, if you use a regional locale like de_AT
in your website root, the translation from $arrLanguages
would have never been accessed, as $item['link']
would be DE-AT
and the access would have gone to de-at
- but it's actually under de_AT
. This PR fixes that by using $item['item']->getLocaleId()
instead of strtolower($item['link'])
.
Thank you @fritzmg
Fixes PHP 8 warnings like
in case you use languages or language + region combinations not known to Contao/ICU.