14 $this->config->getDefaultLanguage()
20 return "Set default language to " . $this->config->getDefaultLanguage();
31 new \ilIniFilesLoadedObjective(),
32 new \ilSettingsFactoryExistsObjective()
38 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
40 $settings =
$factory->settingsFor(
"common");
41 $settings->set(
"language", $this->config->getDefaultLanguage());
43 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
44 $client_ini->setVariable(
"language",
"default", $this->config->getDefaultLanguage());
46 if (!$client_ini->write()) {
47 throw new Setup\UnachievableException(
"Could not write client.ini.php");
58 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
59 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
60 $settings =
$factory->settingsFor(
"common");
63 $settings->get(
"language") !== $this->config->getDefaultLanguage() ||
64 $client_ini->readVariable(
"language",
"default") !== $this->config->getDefaultLanguage()
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)