ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDefaultLanguageDetector.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 protected ilIniFile $ini;
29
30 public function __construct(ilIniFile $ini)
31 {
32 $this->ini = $ini;
33 }
34
38 public function getIso2LanguageCode(): string
39 {
40 return $this->ini->readVariable("language", "default");
41 }
42}
Class ilDefaultLanguageDetector.
getIso2LanguageCode()
Returns the detected ISO2 language code.
INIFile Parser Early access in init proceess! Avoid further dependencies like logging or other servic...
Interface ilLanguageDetector.