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);
64 $this->il_setup_language->setDbHandler($db);
70 $installed_languages = [];
71 $local_languages = $this->il_setup_language->getLocalLanguages();
72 foreach ($this->il_setup_language->getInstalledLanguages() as
$lang) {
74 Setup\Metrics\Metric::STABILITY_STABLE,
75 Setup\Metrics\Metric::TYPE_BOOL,
76 in_array(
$lang, $local_languages,
true),
77 "Is there a local language file for the language?"
80 Setup\Metrics\Metric::STABILITY_STABLE,
81 Setup\Metrics\Metric::TYPE_BOOL,
82 count($this->il_setup_language->getLocalChanges(
$lang)) > 0,
83 "Are there local changes for the language?"
86 Setup\Metrics\Metric::STABILITY_STABLE,
87 Setup\Metrics\Metric::TYPE_COLLECTION,
89 "local_file" => $local_file,
90 "local_changes" => $local_changes
95 Setup\Metrics\Metric::STABILITY_STABLE,
96 Setup\Metrics\Metric::TYPE_COLLECTION,
100 "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...