Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore Class Reference
Inheritance diagram for MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore:
MediaWiki\Extension\Translate\MessageGroupProcessing\TranslatableBundleStore

Public Member Functions

 __construct (private readonly RevTagStore $revTagStore, private readonly JobQueueGroup $jobQueue, private readonly LanguageNameUtils $languageNameUtils, private readonly MessageIndex $messageIndex, private readonly MessageGroupMetadata $messageGroupMetadata,)
 
 move (Title $oldName, Title $newName)
 
 handleNullRevisionInsert (TranslatableBundle $bundle, RevisionRecord $revision)
 
 delete (Title $title)
 
 validate (Title $pageTitle, MessageBundleContent $content)
 
 save (Title $pageTitle, RevisionRecord $revisionRecord, MessageBundleContent $content)
 

Detailed Description

Author
Abijeet Patro
Niklas Laxström
Since
2022.04 @license GPL-2.0-or-later

Definition at line 28 of file MessageBundleStore.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore::__construct ( private readonly RevTagStore $revTagStore,
private readonly JobQueueGroup $jobQueue,
private readonly LanguageNameUtils $languageNameUtils,
private readonly MessageIndex $messageIndex,
private readonly MessageGroupMetadata $messageGroupMetadata )

Definition at line 34 of file MessageBundleStore.php.

Member Function Documentation

◆ delete()

MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore::delete ( Title $title)

◆ handleNullRevisionInsert()

MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore::handleNullRevisionInsert ( TranslatableBundle $bundle,
RevisionRecord $revision )

◆ move()

MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore::move ( Title $oldName,
Title $newName )

◆ save()

MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore::save ( Title $pageTitle,
RevisionRecord $revisionRecord,
MessageBundleContent $content )

Definition at line 130 of file MessageBundleStore.php.

◆ validate()

MediaWiki\Extension\Translate\MessageBundleTranslation\MessageBundleStore::validate ( Title $pageTitle,
MessageBundleContent $content )
Exceptions
MalformedBundle

Definition at line 88 of file MessageBundleStore.php.


The documentation for this class was generated from the following file: