Service to import a translatable bundle from a file. More...
Public Member Functions | |
__construct (WikiImporterFactory $wikiImporterFactory, TranslatablePageParser $translatablePageParser, RevisionLookup $revisionLookup, NamespaceInfo $namespaceInfo, TitleFactory $titleFactory, FormatterFactory $formatterFactory) | |
import (string $importFilePath, string $interwikiPrefix, bool $assignKnownUsers, UserIdentity $user, MessageLocalizer $localizer, ?Title $targetPage, ?string $comment) | |
setPageImportCompleteCallback (callable $callable) | |
onAfterImportPage ( $title, $foreignTitle, $revCount, $sRevCount, $pageInfo) | |
Static Public Member Functions | |
static | getInstance () |
Factory method used to initialize this HookHandler. | |
Service to import a translatable bundle from a file.
Uses WikiImporter from MediaWiki core.
Definition at line 32 of file TranslatableBundleImporter.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleImporter::__construct | ( | WikiImporterFactory | $wikiImporterFactory, |
TranslatablePageParser | $translatablePageParser, | ||
RevisionLookup | $revisionLookup, | ||
NamespaceInfo | $namespaceInfo, | ||
TitleFactory | $titleFactory, | ||
FormatterFactory | $formatterFactory ) |
Definition at line 43 of file TranslatableBundleImporter.php.
|
static |
Factory method used to initialize this HookHandler.
Definition at line 60 of file TranslatableBundleImporter.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleImporter::import | ( | string | $importFilePath, |
string | $interwikiPrefix, | ||
bool | $assignKnownUsers, | ||
UserIdentity | $user, | ||
MessageLocalizer | $localizer, | ||
?Title | $targetPage, | ||
?string | $comment ) |
Definition at line 64 of file TranslatableBundleImporter.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleImporter::onAfterImportPage | ( | $title, | |
$foreignTitle, | |||
$revCount, | |||
$sRevCount, | |||
$pageInfo ) |
Definition at line 162 of file TranslatableBundleImporter.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleImporter::setPageImportCompleteCallback | ( | callable | $callable | ) |
Definition at line 124 of file TranslatableBundleImporter.php.