|
| static | renderTagPage ( $wikitextParser, &$text, $state) |
| | Hook: ParserBeforeInternalParse.
|
| |
| static | preprocessTagPage ( $wikitextParser, &$text, $state) |
| | Hook: ParserBeforePreprocess.
|
| |
| static | fetchTranslatableTemplateAndTitle (?LinkTarget $contextLink, ?LinkTarget $templateLink, bool &$skip, ?RevisionRecord &$revRecord) |
| | This sets &$revRecord to the revision of transcluded page translation if it exists, or sets it to the source language if the page translation does not exist.
|
| |
| static | onPageContentLanguage (Title $title, &$pageLang) |
| | Set the right page content language for translated pages ("Page/xx").
|
| |
| static | onTitleGetEditNotices (Title $title, int $oldid, array &$notices) |
| | Display an edit notice for translatable source pages if it's enabled Hook: TitleGetEditNotices.
|
| |
| static | onBeforePageDisplay (OutputPage $out, Skin $skin) |
| | Hook: BeforePageDisplay.
|
| |
| static | onVisualEditorBeforeEditor (OutputPage $out, Skin $skin) |
| | Hook: onVisualEditorBeforeEditor.
|
| |
| static | onSectionSave (WikiPage $wikiPage, User $user, TextContent $content, $summary, $minor, $flags, MessageHandle $handle) |
| | This is triggered after an edit to translation unit page.
|
| |
| static | onGetMagicVariableIDs (&$variableIDs) |
| | Hook: GetMagicVariableIDs.
|
| |
| static | onParserGetVariableValueSwitch (Parser $parser, array &$variableCache, string $magicWordId, ?string &$ret, PPFrame $frame) |
| | Hook: ParserGetVariableValueSwitch.
|
| |
| static | languages ( $data, $params, $parser) |
| |
| static | addLanguageLinks (Title $title, array &$languageLinks) |
| | Hooks: LanguageLinks.
|
| |
| static | formatLanguageLink (array &$link, Title $linkTitle, Title $pageTitle, OutputPage $out) |
| | Hooks: SkinTemplateGetLanguageLink.
|
| |
| static | tpSyntaxCheckForEditContent ( $context, $content, $status, $summary) |
| | Display nice error when editing content.
|
| |
| static | tpSyntaxCheck (RenderedRevision $renderedRevision, UserIdentity $user, CommentStoreComment $summary, $flags, Status $hookStatus) |
| | When attempting to save, last resort.
|
| |
| static | addTranstagAfterSave (WikiPage $wikiPage, UserIdentity $userIdentity, string $summary, int $flags, RevisionRecord $revisionRecord, EditResult $editResult) |
| | Hook: PageSaveComplete.
|
| |
| static | updateTranstagOnNullRevisions (RevisionRecord $rev) |
| | Page moving and page protection (and possibly other things) creates null revisions.
|
| |
| static | onGetUserPermissionsErrorsExpensive (Title $title, User $user, $action, &$result) |
| | Prevent creation of orphan translation units in Translations namespace.
|
| |
| static | preventDirectEditing (Title $title, User $user, $action, &$result) |
| | Prevent editing of translation pages directly.
|
| |
| static | preventMoves (Title $oldTitle, Title $newTitle, StatusValue $status) |
| | Prevent moving translatable pages, translation pages, or message bundles by any means other than our own move tools.
|
| |
| static | disableDelete ( $article, $out, &$reason) |
| | Redirects the delete action to our own for translatable pages.
|
| |
| static | translatablePageHeader ( $article, &$outputDone, &$pcache) |
| | Hook: ArticleViewHeader.
|
| |
| static | replaceMovePage (&$list) |
| | Hook: SpecialPage_initList.
|
| |
| static | lockedPagesCheck (Title $title, User $user, $action, &$result) |
| | Hook: getUserPermissionsErrorsExpensive.
|
| |
| static | replaceSubtitle (&$subpages, ?Skin $skin, OutputPage $out) |
| | Hook: SkinSubPageSubtitle.
|
| |
| static | onSkinTemplateNavigation__Universal (Skin $skin, array &$tabs) |
| | Converts the edit tab (if exists) for translation pages to translate tab, and adds a "mark for translation" page action link for source translatable pages.
|
| |
| static | onMovePageTranslationUnits (LinkTarget $oldLinkTarget, LinkTarget $newLinkTarget, UserIdentity $userIdentity, int $oldid, int $newid, string $reason, RevisionRecord $revisionRecord) |
| | Hook to update source and destination translation pages on moving translation units Hook: PageMoveComplete.
|
| |
| static | onDeleteTranslationUnit (WikiPage $unit, User $user, $reason, $id, $content, $logEntry) |
| | Hook to update translation page on deleting a translation unit Hook: ArticleDeleteComplete.
|
| |
| static | onReplaceTextFilterPageTitlesForEdit (array &$titles) |
| | Removes translation pages from the list of page titles to be edited Hook: ReplaceTextFilterPageTitlesForEdit.
|
| |
| static | onReplaceTextFilterPageTitlesForRename (array &$titles) |
| | Removes translatable and translation pages from the list of titles to be renamed Hook: ReplaceTextFilterPageTitlesForRename.
|
| |
| static | getSpecialManageMessageGroupSubscriptionsLink (Context $context, Config $config) |
| |
| static | onLinksUpdateComplete (LinksUpdate $linksUpdate) |
| | Create any redlinked categories marked for translation Hook: LinksUpdateComplete.
|
| |
Hooks for page translation.
- Author
- Niklas Laxström @license GPL-2.0-or-later
Definition at line 69 of file Hooks.php.