ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilDefaultLanguageDetector.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
28 {
29  protected ilIniFile $ini;
30 
31  public function __construct(ilIniFile $ini)
32  {
33  $this->ini = $ini;
34  }
35 
39  public function getIso2LanguageCode(): string
40  {
41  return $this->ini->readVariable("language", "default");
42  }
43 }
getIso2LanguageCode()
Returns the detected ISO2 language code.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...