Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MessageUpdateJob Class Reference

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

Inheritance diagram for MessageUpdateJob:
MediaWiki\Extension\Translate\Jobs\GenericTranslateJob

Public Member Functions

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

Static Public Member Functions

static newJob (Title $target, string $content, $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.

Definition at line 25 of file MessageUpdateJob.php.

Constructor & Destructor Documentation

◆ __construct()

MessageUpdateJob::__construct ( $title,
$params = [] )
Parameters
Title$title
array$params

Definition at line 82 of file MessageUpdateJob.php.

Member Function Documentation

◆ newJob()

static MessageUpdateJob::newJob ( Title $target,
string $content,
$fuzzy = false )
static

Create a normal message update job without a rename process.

Parameters
Title$target
string$content
string | false$fuzzy
Returns
self

Definition at line 33 of file MessageUpdateJob.php.

◆ newRenameJob()

static MessageUpdateJob::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 56 of file MessageUpdateJob.php.

◆ run()

MessageUpdateJob::run ( )

Definition at line 86 of file MessageUpdateJob.php.


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