19 declare(strict_types=1);
39 $this->client_ini = $DIC->clientIni();
40 $this->request_information =
$_SERVER;
53 if ($this->
settings->get(
"lang_detection") &&
55 array_key_exists(
'HTTP_ACCEPT_LANGUAGE', $this->request_information)
69 case self::HTTP_REQUEST_DETECTOR:
72 case self::DEFAULT_DETECTOR:
76 throw new ilLanguageException(__METHOD__ . sprintf(
"Cannot create language detector instance for type %s!", $type));
static usesHTTP()
Uses HTTP aka browser.
Class ilLanguageDetectorFactory.
Class for language related exception handling in ILIAS.
Class ilDefaultLanguageDetector.
Class ilHttpRequestsLanguageDetector.
const HTTP_REQUEST_DETECTOR
array $request_information
createDetectorByType(int $type)