3 declare(strict_types=1);
42 return "Set default language to en";
59 new \ilIniFilesLoadedObjective(),
60 new \ilSettingsFactoryExistsObjective()
69 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
74 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
75 $client_ini->setVariable(
"language",
"default",
"en");
77 if (!$client_ini->write()) {
78 throw new Setup\UnachievableException(
"Could not write client.ini.php");
89 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
90 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
95 $client_ini->readVariable(
"language",
"default") !==
"en";
achieve(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
isApplicable(Setup\Environment $environment)