|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
A directory of language files with a path and a prefix for them. More...
Inheritance diagram for ILIAS\Language\ComponentTranslation\LanguageFileDirectory:
Collaboration diagram for ILIAS\Language\ComponentTranslation\LanguageFileDirectory:Public Member Functions | |
| getPrefix () | |
| getPath () | |
| getSuffix () | |
| isLocal () | |
A directory of language files with a path and a prefix for them.
It models how ILIAS currently handles translations: files must be named (e.g. ilias_en.lang) and structured accordingly.
/lang directory; empty prefix, as the files already carry component prefixes (variables of three parts).lang/); entries of two parts (like plugins before).A contributed ComponentLanguageFileDirectory is also how a module opts into the PO/MO migration (see MigratedLanguageFileSync, ShippedTranslationsBuild, TranslationGettextRepository): getPath() then also locates its shipped <prefix>.pot/<prefix>_<lang>.po, the per-installation overlay lives in CLIENT_DATA_DIR lang/<prefix>/<lang>/ (see MigratedLanguageFilePaths). The same directory object serves both conventions.
Definition at line 37 of file LanguageFileDirectory.php.
| ILIAS\Language\ComponentTranslation\LanguageFileDirectory::getPath | ( | ) |
Implemented in ILIAS\Language\ComponentTranslation\ComponentLanguageFileDirectory, ILIAS\Language\ComponentTranslation\CustomizingLanguageFileDirectory, and ILIAS\Language\ComponentTranslation\MainLanguageFileDirectory.
Referenced by ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\shippedDirectoryPath().
Here is the caller graph for this function:| ILIAS\Language\ComponentTranslation\LanguageFileDirectory::getPrefix | ( | ) |
Implemented in ILIAS\Language\ComponentTranslation\ComponentLanguageFileDirectory, ILIAS\Language\ComponentTranslation\CustomizingLanguageFileDirectory, and ILIAS\Language\ComponentTranslation\MainLanguageFileDirectory.
Referenced by ILIAS\Language\Setup\InstalledLanguageDatabaseRepository\checkShippedPoFile(), ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\isFoundWithoutGraph(), ILIAS\Language\ComponentTranslation\MigratedLanguageFileSync\overlayFiles(), ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\overlayPoFile(), ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\shippedFileNamePattern(), ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\shippedTemplatePath(), and ILIAS\Language\ComponentTranslation\MigratedLanguageFilePaths\templateLockFile().
Here is the caller graph for this function:| ILIAS\Language\ComponentTranslation\LanguageFileDirectory::getSuffix | ( | ) |
| ILIAS\Language\ComponentTranslation\LanguageFileDirectory::isLocal | ( | ) |
Implemented in ILIAS\Language\ComponentTranslation\ComponentLanguageFileDirectory, ILIAS\Language\ComponentTranslation\CustomizingLanguageFileDirectory, and ILIAS\Language\ComponentTranslation\MainLanguageFileDirectory.
Referenced by ILIAS\Language\Setup\InstalledLanguageDatabaseRepository\checkShippedPoFile().
Here is the caller graph for this function: