mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-22 23:50:10 +02:00
Translator::getPreferredLocaleCode($header) can now be used with the HTTP "Accept-Language" header to return the best matching locale using the user's preferations reported by the browser and our available locale stack. Additionally Translator::getLocale and Translator::getLanguage were replaced by Translator::splitLocaleCode to provide a more flexible implemenation in order to identify specific parts of a particular locale or the current one. refs #6074