Class which encapsulates message importing. More...
Public Member Functions | |
__construct (Title $title, User $user, MessageLocalizer $messageLocalizer, $group=null, string $code='en') | |
getTitle () | |
Wrapper for consistency with SpecialPage. | |
setTitle (Title $title) | |
getUser () | |
setUser (User $user) | |
getGroup () | |
setGroup ( $group) | |
getCode () | |
setCode (string $code='en') | |
execute (array $messages) | |
Static Public Member Functions | |
static | doFuzzy (Title $title, string $message, string $comment, ?User $user, MessageLocalizer $messageLocalizer) |
static | makeSectionElement (string $legend, string $type, string $content, ?Language $lang=null) |
Make section elements. | |
Protected Member Functions | |
getAction () | |
doHeader () | |
doFooter () | |
allowProcess () | |
getActions () | |
checkProcessTime () | |
Class which encapsulates message importing.
It scans for changes (new, changed, deleted), displays them in pretty way with diffs and finally executes the actions the user choices.
Definition at line 38 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::__construct | ( | Title | $title, |
User | $user, | ||
MessageLocalizer | $messageLocalizer, | ||
$group = null, | |||
string | $code = 'en' ) |
Title | $title | |
User | $user | |
MessageLocalizer | $messageLocalizer | |
MessageGroup | string | null | $group | |
string | $code |
Definition at line 56 of file MessageWebImporter.php.
|
protected |
Definition at line 130 of file MessageWebImporter.php.
|
protected |
Definition at line 431 of file MessageWebImporter.php.
|
protected |
Definition at line 126 of file MessageWebImporter.php.
|
static |
Definition at line 470 of file MessageWebImporter.php.
|
protected |
Definition at line 112 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::execute | ( | array | $messages | ) |
Definition at line 148 of file MessageWebImporter.php.
|
protected |
Definition at line 108 of file MessageWebImporter.php.
|
protected |
Definition at line 140 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::getCode | ( | ) |
Definition at line 100 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::getGroup | ( | ) |
Definition at line 87 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::getTitle | ( | ) |
Wrapper for consistency with SpecialPage.
Definition at line 71 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::getUser | ( | ) |
Definition at line 79 of file MessageWebImporter.php.
|
static |
Make section elements.
string | $legend | Legend as raw html. |
string | $type | Contents of type class. |
string | $content | Contents as raw html. |
Language | null | $lang | The language in which the text is written. |
Definition at line 574 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::setCode | ( | string | $code = 'en' | ) |
Definition at line 104 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::setGroup | ( | $group | ) |
MessageGroup | string | $group | MessageGroup object or group ID |
Definition at line 92 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::setTitle | ( | Title | $title | ) |
Definition at line 75 of file MessageWebImporter.php.
MediaWiki\Extension\Translate\Synchronization\MessageWebImporter::setUser | ( | User | $user | ) |
Definition at line 83 of file MessageWebImporter.php.