ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
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.
INI file parser — compatibility wrapper.
Interface ilLanguageDetector.