A special page for marking revisions of pages for translation. More...
Public Member Functions | |
__construct (LanguageNameUtils $languageNameUtils, LanguageFactory $languageFactory, TranslationUnitStoreFactory $translationUnitStoreFactory, TranslatablePageParser $translatablePageParser, LinkBatchFactory $linkBatchFactory, JobQueueGroup $jobQueueGroup, ILoadBalancer $loadBalancer, MessageIndex $messageIndex) | |
doesWrites () | |
execute ( $parameters) | |
listPages () | |
Static Public Member Functions | |
static | loadPagesFromDB () |
TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages. | |
static | buildPageArray (IResultWrapper $res) |
TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages. | |
Protected Member Functions | |
getGroupName () | |
onActionMark (Title $title, int $revision) | |
showGenericConfirmation (array $params) | |
showUnlinkConfirmation (Title $target) | |
unmarkPage (TranslatablePage $page, UserIdentity $user) | |
markForTranslation (TranslatablePage $page, ParserOutput $parse, array $sections, bool $updateVersion, bool $transclusion) | |
This function does the heavy duty of marking a page. | |
handlePriorityLanguages (WebRequest $request, TranslatablePage $page) | |
A special page for marking revisions of pages for translation.
This page is the main tool for translation administrators in the wiki. It will list all pages in their various states and provides actions that are suitable for given translatable page.
Definition at line 58 of file PageTranslationSpecialPage.php.
MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::__construct | ( | LanguageNameUtils | $languageNameUtils, |
LanguageFactory | $languageFactory, | ||
TranslationUnitStoreFactory | $translationUnitStoreFactory, | ||
TranslatablePageParser | $translatablePageParser, | ||
LinkBatchFactory | $linkBatchFactory, | ||
JobQueueGroup | $jobQueueGroup, | ||
ILoadBalancer | $loadBalancer, | ||
MessageIndex | $messageIndex ) |
Definition at line 84 of file PageTranslationSpecialPage.php.
|
static |
TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages.
Definition at line 487 of file PageTranslationSpecialPage.php.
MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::doesWrites | ( | ) |
Definition at line 105 of file PageTranslationSpecialPage.php.
MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::execute | ( | $parameters | ) |
Definition at line 113 of file PageTranslationSpecialPage.php.
|
protected |
Definition at line 109 of file PageTranslationSpecialPage.php.
|
protected |
WebRequest | $request | |
TranslatablePage | $page |
Definition at line 1213 of file PageTranslationSpecialPage.php.
MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage::listPages | ( | ) |
Definition at line 559 of file PageTranslationSpecialPage.php.
|
static |
TODO: Move this function to SyncTranslatableBundleStatusMaintenanceScript once we start using the translatable_bundles table for fetching the translatabale pages.
Definition at line 460 of file PageTranslationSpecialPage.php.
|
protected |
This function does the heavy duty of marking a page.
TranslatablePage | $page | |
ParserOutput | $parse | |
TranslationUnit[] | $sections | |
bool | $updateVersion | |
bool | $transclusion |
Definition at line 1098 of file PageTranslationSpecialPage.php.
|
protected |
Definition at line 283 of file PageTranslationSpecialPage.php.
|
protected |
Definition at line 398 of file PageTranslationSpecialPage.php.
|
protected |
Definition at line 424 of file PageTranslationSpecialPage.php.
|
protected |
Definition at line 445 of file PageTranslationSpecialPage.php.