19declare(strict_types=1);
51 $client_ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
53 $storage->storeConfigText(
55 $client_ini->readVariable(
"language",
"default"),
56 "The language that is used by default."
60 $db = $environment->getResource(
Setup\Environment::RESOURCE_DATABASE);
65 $this->il_setup_language->setDbHandler($db);
67 $installed_languages = [];
68 $local_languages = $this->il_setup_language->getLocalLanguages();
69 foreach ($this->il_setup_language->getInstalledLanguages() as $lang) {
71 Setup\Metrics\Metric::STABILITY_STABLE,
72 Setup\Metrics\Metric::TYPE_BOOL,
73 in_array($lang, $local_languages,
true),
74 "Is there a local language file for the language?"
77 Setup\Metrics\Metric::STABILITY_STABLE,
78 Setup\Metrics\Metric::TYPE_BOOL,
79 count($this->il_setup_language->getLocalChanges($lang)) > 0,
80 "Are there local changes for the language?"
83 Setup\Metrics\Metric::STABILITY_STABLE,
84 Setup\Metrics\Metric::TYPE_COLLECTION,
86 "local_file" => $local_file,
87 "local_changes" => $local_changes
92 Setup\Metrics\Metric::STABILITY_STABLE,
93 Setup\Metrics\Metric::TYPE_COLLECTION,
97 "installed_languages",
A metric is something we can measure about the system.
getTentativePreconditions(Setup\Environment $environment)
@inheritDoc
__construct(Setup\Metrics\Storage $storage, \ilSetupLanguage $il_setup_language)
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
@inheritDoc
ilSetupLanguage $il_setup_language
language handling for setup
An environment holds resources to be used in the setup process.
Storage is simple key/value store without further schema definition.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...