mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
Web: Allow to configure whether we'll consider Accept-Language or not
This commit is contained in:
parent
316b998ef7
commit
87505aff7c
@ -554,7 +554,7 @@ class Web extends EmbeddedWeb
|
||||
) {
|
||||
return $locale;
|
||||
}
|
||||
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && $this->config->get('global', 'use_accept_language', true)) {
|
||||
return Translator::getPreferredLocaleCode($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
}
|
||||
return Translator::DEFAULT_LOCALE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user