Various editing enhancements to the edit page interface. More...
Static Public Member Functions | |
static | disallowLangTranslations (Title $title, User $user, string $action, &$result) |
Prevent translations to non-translatable languages for the group Hook: getUserPermissionsErrorsExpensive. | |
static | onSaveComplete (WikiPage $wikiPage, UserIdentity $userIdentity, string $summary, int $flags, RevisionRecord $revisionRecord, EditResult $editResult) |
Runs message checks, adds tp:transver tags and updates statistics. | |
static | updateTransverTag (MessageHandle $handle, int $revision, string $text, User $user) |
Adds tag which identifies the revision of source message at that time. | |
static | disablePreSaveTransform (WikiPage $wikiPage, ParserOptions $popts) |
Hook: ArticlePrepareTextForEdit. | |
Various editing enhancements to the edit page interface.
Partly succeeded by the new ajax-enhanced editor but kept for compatibility. Also has code that is still relevant, like the hooks on save.
Definition at line 35 of file TranslateEditAddons.php.
|
static |
Hook: ArticlePrepareTextForEdit.
Definition at line 275 of file TranslateEditAddons.php.
|
static |
Prevent translations to non-translatable languages for the group Hook: getUserPermissionsErrorsExpensive.
Title | $title | |
User | $user | |
string | $action | |
mixed | &$result |
Definition at line 45 of file TranslateEditAddons.php.
|
static |
Runs message checks, adds tp:transver tags and updates statistics.
Hook: PageSaveComplete
Definition at line 95 of file TranslateEditAddons.php.
|
static |
Adds tag which identifies the revision of source message at that time.
This is used to show diff against current version of source message when updating a translation. Hook: Translate:newTranslation
Definition at line 248 of file TranslateEditAddons.php.