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
 getLogger ()
 Returns a logger instance with the channel name.
 
 getLogPrefix ()
 
 logInfo ( $msg, $context=[])
 
 logDebug ( $msg, $context=[])
 
 logError ( $msg, $context=[])
 
 logWarning ( $msg, $context=[])
 
- Protected Attributes inherited from MediaWiki\Extension\Translate\Jobs\GenericTranslateJob
 $logger
 

Detailed Description

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

Definition at line 23 of file MessageUpdateJob.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 80 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 31 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 54 of file MessageUpdateJob.php.

◆ run()

MessageUpdateJob::run ( )

Definition at line 84 of file MessageUpdateJob.php.


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