|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Build status and problems of the ILIAS modules served by TranslationGettextRepository: which modules are shipped, whether a .po is left unbuilt, and the problems of this request for the administration.
More...
Collaboration diagram for ILIAS\Language\ComponentTranslation\MigratedTranslations:Static Public Member Functions | |
| static | isShippedModule (string $module) |
| Whether $module belongs to the ILIAS components (never served from lng_data then). More... | |
| static | shipsPoFor (string $module, string $lang_key) |
Whether the template directory of $module has a <module>_<lang>.po. More... | |
| static | clientDataDir () |
| CLIENT_DATA_DIR, before it is defined (Setup, CLI) resolveClientDataDir(); cached until reset(). More... | |
| static | shipsPoWithoutBuild (string $module, string $lang_key, ?LanguageFileDirectory $directory) |
Whether $module ships a .po for $lang_key that the build does not serve; cached until reset(). More... | |
| static | reportMissingBuild () |
Reports (fatal) a missing build; false if there is one. More... | |
| static | reportProblem (string $message, bool $fatal=false) |
| Records a problem (logged once per request, see getProblem()). More... | |
| static | getProblem (?string $client_data_dir) |
| The first fatal problem of this request, otherwise the first one - after checking the first module of the build, so the administration can show it even if no migrated module was used yet. More... | |
| static | reportActivationProblem (string $reason) |
| Native gettext cannot be activated (first use or later): one message per request, whatever the reason. More... | |
| static | reset () |
| Forgets what was read in this request, the served translations included (e.g. More... | |
| static | resetForTests () |
| Forgets everything read so far, the problems included - for tests only. More... | |
| static | pointer () |
| static | artifactDirectory () |
Static Private Member Functions | |
| static | missingBuildMessage () |
| static | reportNewerOtherBuild (array $pointer) |
| Records (not fatal, not logged) that the pointer of the other locale kind was switched later than $pointer to a build of other shipped files. More... | |
| static | otherBuildHint (string $prefix, bool $system_locale) |
| static | shippedTemplates () |
| static | iliasDirectory () |
Static Private Attributes | |
| static bool | $pointer_read = false |
| static bool | $pointer_system_locale = null |
| The locale kind (NativeGettext::usesSystemLocale()) $pointer was read for. More... | |
| static array | $pointer = null |
| static array | $shipped_templates = null |
| static array | $shipped_modules = [] |
| static string | $client_data_dir = null |
| static bool | $client_data_dir_resolved = false |
| static array | $shipped_without_build = [] |
| static array | $problems = [] |
| static bool | $activation_problem_reported = false |
Build status and problems of the ILIAS modules served by TranslationGettextRepository: which modules are shipped, whether a .po is left unbuilt, and the problems of this request for the administration.
Static: the problems are collected per request like a log, also from static callers (ilLanguage::_lookupEntry(), the write paths). No part of TranslationRepository, as no translation is read here.
@phpstan-import-type Pointer from ShippedTranslationsBuild
Definition at line 32 of file MigratedTranslations.php.
|
static |
Definition at line 327 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\shippedArtifactDirectory().
Referenced by ILIAS\Language\ComponentTranslation\TranslationGettextRepository\state().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
CLIENT_DATA_DIR, before it is defined (Setup, CLI) resolveClientDataDir(); cached until reset().
Definition at line 103 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedTranslations\$client_data_dir, CLIENT_DATA_DIR, and ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\resolveClientDataDir().
Here is the call graph for this function:
|
static |
The first fatal problem of this request, otherwise the first one - after checking the first module of the build, so the administration can show it even if no migrated module was used yet.
null if there is none. Paths below the ILIAS directory and the client data directory are relative in the message (<data>/…); the log has them in full.
Definition at line 177 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedTranslations\$client_data_dir, $message, $module, ILIAS\Language\ComponentTranslation\MigratedTranslations\$pointer, ILIAS\Language\ComponentTranslation\MigratedTranslations\pointer(), and ILIAS\Language\ComponentTranslation\MigratedTranslations\reportProblem().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAFatalProblemIsReportedBeforeAnEarlierNonFatalOne(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAHealthyBuildHasNoProblem(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testANewerBuildOfTheOtherLocaleKindIsHintedAtOnlyForOtherShippedFiles(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAnOverlayProblemNamesItsPathRelativeToTheClientDataDirectory(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAProblemOfOneModuleIsNotFatalAndHasNoAbsolutePaths(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testASystemLocaleBuildOnAnotherPlatformServesNothingAndTheProblemNamesTheCause(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testGetProblemChecksTheFirstModuleOfTheBuildEvenIfNothingWasUsedYet(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testLostNativeGettextServesNothingNotEvenTheIdentifierForAnOverlayValue(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testNoBuildIsAFatalProblemWithoutAbsolutePaths(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testWithoutABuildNothingIsMigratedAndTheProblemSaysSo(), and ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testWithoutAnOwnPointerTheMissingBuildIsFatalAndNamesTheBuildOfTheOtherKind().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 332 of file MigratedTranslations.php.
|
static |
Whether $module belongs to the ILIAS components (never served from lng_data then).
Works without the component graph: from the build's recorded contributions, else from the shipped templates.
Definition at line 75 of file MigratedTranslations.php.
References $module, ILIAS\Language\ComponentTranslation\MigratedTranslations\$pointer, and ILIAS\Language\ComponentTranslation\MigratedTranslations\pointer().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAModuleIsShippedIfItIsBuiltOrHasATemplateInTheComponents(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testWithABuildTheRecordedContributionsDecideEvenForAModuleWithoutAnyPo(), and ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testWithoutABuildOrAListOfContributionsTheShippedTemplatesDecide().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 247 of file MigratedTranslations.php.
References $message, ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\buildPointerFile(), ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\buildPointerFileOf(), ILIAS\Language\ComponentTranslation\MigratedTranslations\otherBuildHint(), and ILIAS\Language\ComponentTranslation\NativeGettext\usesSystemLocale().
Here is the call graph for this function:
|
staticprivate |
Definition at line 283 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\buildPointerFileOf().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\missingBuildMessage(), and ILIAS\Language\ComponentTranslation\MigratedTranslations\reportNewerOtherBuild().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 306 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedTranslations\$pointer, ILIAS\Language\ComponentTranslation\ShippedTranslationsBuild\readPointer(), ILIAS\Language\ComponentTranslation\MigratedTranslations\reportNewerOtherBuild(), ILIAS\Language\ComponentTranslation\MigratedTranslations\reset(), and ILIAS\Language\ComponentTranslation\NativeGettext\usesSystemLocale().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\getProblem(), ILIAS\Language\ComponentTranslation\MigratedTranslations\isShippedModule(), ILIAS\Language\ComponentTranslation\MigratedTranslations\reportMissingBuild(), ILIAS\Language\ComponentTranslation\TranslationGettextRepository\state(), and ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testSwitchingTheLocaleKindReadsTheOtherPointerWithoutAReset().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Native gettext cannot be activated (first use or later): one message per request, whatever the reason.
Definition at line 209 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedTranslations\reportProblem().
Referenced by ILIAS\Language\ComponentTranslation\TranslationGettextRepository\reportLostActivation(), and ILIAS\Language\ComponentTranslation\TranslationGettextRepository\state().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Reports (fatal) a missing build; false if there is one.
Definition at line 137 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedTranslations\$pointer, ILIAS\Language\ComponentTranslation\MigratedTranslations\pointer(), and ILIAS\Language\ComponentTranslation\MigratedTranslations\reportProblem().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testReportMissingBuildIsFatalWithoutABuildAndSilentWithOne().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Records (not fatal, not logged) that the pointer of the other locale kind was switched later than $pointer to a build of other shipped files.
| Pointer | $pointer |
Definition at line 266 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedTranslations\$pointer, ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\buildPointerFile(), ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\buildPointerFileOf(), ILIAS\Language\ComponentTranslation\MigratedTranslations\otherBuildHint(), ILIAS\Language\ComponentTranslation\ShippedTranslationsBuild\readPointerOf(), and ILIAS\Language\ComponentTranslation\NativeGettext\usesSystemLocale().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\pointer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Records a problem (logged once per request, see getProblem()).
| bool | $fatal | whether it concerns every migrated module (no native gettext, no build) rather than one module, language or overlay |
Definition at line 154 of file MigratedTranslations.php.
References $DIC, and $message.
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\getProblem(), ILIAS\Language\ComponentTranslation\MigratedTranslations\reportActivationProblem(), ILIAS\Language\ComponentTranslation\MigratedTranslations\reportMissingBuild(), ILIAS\Language\ComponentTranslation\TranslationGettextRepository\state(), ILIAS\Language\Activities\RepositoryProvider\updateModuleCache(), and ILIAS\Language\ComponentTranslation\TranslationGettextRepository\withOverlay().
Here is the caller graph for this function:
|
static |
Forgets what was read in this request, the served translations included (e.g.
after a new build in the same process).
Definition at line 222 of file MigratedTranslations.php.
Referenced by ILIAS\Language\Setup\ShippedLanguageFilesCompiledObjective\achieve(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\buildKind(), ILIAS\Language\ComponentTranslation\MigratedTranslations\pointer(), ILIAS\Language\ComponentTranslation\MigratedTranslations\resetForTests(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testABuildWithoutTheIdentifiersOfAModuleServesNothingOfIt(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAFatalProblemIsReportedBeforeAnEarlierNonFatalOne(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAModuleIsShippedIfItIsBuiltOrHasATemplateInTheComponents(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testAProblemOfOneModuleIsNotFatalAndHasNoAbsolutePaths(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testASystemLocaleBuildOnAnotherPlatformServesNothingAndTheProblemNamesTheCause(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testEachLocaleKindServesTheBuildOfItsOwnPointer(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testGetProblemChecksTheFirstModuleOfTheBuildEvenIfNothingWasUsedYet(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testResetForgetsTheBuildSoANewOneIsServed(), ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testTheSameProblemOfAnotherLanguageOfTheModuleIsNotLoggedAgain(), and ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testWithoutABuildOrAListOfContributionsTheShippedTemplatesDecide().
Here is the caller graph for this function:
|
static |
Forgets everything read so far, the problems included - for tests only.
Definition at line 240 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedTranslations\reset().
Here is the call graph for this function:
|
staticprivate |
Definition at line 296 of file MigratedTranslations.php.
References ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\findShippedTemplates().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\shipsPoFor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Whether the template directory of $module has a <module>_<lang>.po.
Definition at line 91 of file MigratedTranslations.php.
References $module, ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\isValidLanguageKey(), and ILIAS\Language\ComponentTranslation\MigratedTranslations\shippedTemplates().
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\shipsPoWithoutBuild(), and ILIAS\Language\ComponentTranslation\MigratedTranslationsTest\testShipsPoForNeedsATemplateADefaultNamedPoAndAValidLanguageKey().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Whether $module ships a .po for $lang_key that the build does not serve; cached until reset().
Definition at line 119 of file MigratedTranslations.php.
References $module, ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\shippedBasePath(), and ILIAS\Language\ComponentTranslation\MigratedTranslations\shipsPoFor().
Here is the call graph for this function:
|
staticprivate |
Definition at line 69 of file MigratedTranslations.php.
|
staticprivate |
Definition at line 54 of file MigratedTranslations.php.
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\clientDataDir(), and ILIAS\Language\ComponentTranslation\MigratedTranslations\getProblem().
|
staticprivate |
Definition at line 55 of file MigratedTranslations.php.
|
staticprivate |
Definition at line 42 of file MigratedTranslations.php.
Referenced by ILIAS\Language\ComponentTranslation\MigratedTranslations\getProblem(), ILIAS\Language\ComponentTranslation\MigratedTranslations\isShippedModule(), ILIAS\Language\ComponentTranslation\MigratedTranslations\pointer(), ILIAS\Language\ComponentTranslation\MigratedTranslations\reportMissingBuild(), and ILIAS\Language\ComponentTranslation\MigratedTranslations\reportNewerOtherBuild().
|
staticprivate |
Definition at line 34 of file MigratedTranslations.php.
|
staticprivate |
The locale kind (NativeGettext::usesSystemLocale()) $pointer was read for.
Definition at line 37 of file MigratedTranslations.php.
|
staticprivate |
Definition at line 67 of file MigratedTranslations.php.
|
staticprivate |
Definition at line 52 of file MigratedTranslations.php.
|
staticprivate |
Definition at line 47 of file MigratedTranslations.php.
|
staticprivate |
Definition at line 60 of file MigratedTranslations.php.