ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilDefaultLanguageDetector.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 require_once "Services/Language/interfaces/interface.ilLanguageDetector.php";
23 
30 {
31  protected ilIniFile $ini;
32 
33  public function __construct(ilIniFile $ini)
34  {
35  $this->ini = $ini;
36  }
37 
41  public function getIso2LanguageCode(): string
42  {
43  return $this->ini->readVariable("language", "default");
44  }
45 }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...