Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Synchronization\UpdateMessageJob Class Reference

Job for updating translation pages when translation or message definition changes. More...

Inheritance diagram for MediaWiki\Extension\Translate\Synchronization\UpdateMessageJob:
MediaWiki\Extension\Translate\Jobs\GenericTranslateJob

Public Member Functions

 __construct (Title $title, array $params=[])
 
 run ()
 

Static Public Member Functions

static newJob (Title $target, string $content, bool $fuzzy=false)
 Create a normal message update job without a rename process.
 
static newRenameJob (Title $target, string $targetStr, string $replacement, $fuzzy, string $content, array $otherLangContents=[])
 Create a message update job containing a rename process.
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Extension\Translate\Jobs\GenericTranslateJob
 logDebug (string $msg, array $context=[])
 
 logInfo (string $msg, array $context=[])
 
 logNotice (string $msg, array $context=[])
 
 logWarning (string $msg, array $context=[])
 
 logError (string $msg, array $context=[])
 

Detailed Description

Job for updating translation pages when translation or message definition changes.

Author
Niklas Laxström

Definition at line 33 of file UpdateMessageJob.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Synchronization\UpdateMessageJob::__construct ( Title $title,
array $params = [] )

Definition at line 78 of file UpdateMessageJob.php.

Member Function Documentation

◆ newJob()

static MediaWiki\Extension\Translate\Synchronization\UpdateMessageJob::newJob ( Title $target,
string $content,
bool $fuzzy = false )
static

Create a normal message update job without a rename process.

Definition at line 37 of file UpdateMessageJob.php.

◆ newRenameJob()

static MediaWiki\Extension\Translate\Synchronization\UpdateMessageJob::newRenameJob ( Title $target,
string $targetStr,
string $replacement,
$fuzzy,
string $content,
array $otherLangContents = [] )
static

Create a message update job containing a rename process.

Parameters
Title$target
string$targetStr
string$replacement
string | false$fuzzy
string$content
array$otherLangContents
Returns
self

Definition at line 58 of file UpdateMessageJob.php.

◆ run()

MediaWiki\Extension\Translate\Synchronization\UpdateMessageJob::run ( )

Definition at line 82 of file UpdateMessageJob.php.


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