Various editing enhancements to the edit page interface. More...
Static Public Member Functions | |
static | disallowLangTranslations (Title $title, User $user, $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, $revision, $text, User $user) |
Adds tag which identifies the revision of source message at that time. | |
static | disablePreSaveTransform (WikiPage $wikiPage, ParserOptions $popts) |
Hook: ArticlePrepareTextForEdit. | |
Static Protected Member Functions | |
static | checkNeedsFuzzy (MessageHandle $handle, $text) |
Returns true if message is fuzzy, OR fails checks OR fails validations (error OR warning). | |
static | updateFuzzyTag (Title $title, $revision, $fuzzy) |
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 25 of file TranslateEditAddons.php.
|
staticprotected |
Returns true if message is fuzzy, OR fails checks OR fails validations (error OR warning).
MessageHandle | $handle | |
string | $text |
Definition at line 165 of file TranslateEditAddons.php.
|
static |
Hook: ArticlePrepareTextForEdit.
WikiPage | $wikiPage | |
ParserOptions | $popts |
Definition at line 284 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 36 of file TranslateEditAddons.php.
|
static |
Runs message checks, adds tp:transver tags and updates statistics.
Hook: PageSaveComplete
WikiPage | $wikiPage | |
UserIdentity | $userIdentity | |
string | $summary | |
int | $flags | |
RevisionRecord | $revisionRecord | |
EditResult | $editResult |
Definition at line 91 of file TranslateEditAddons.php.
|
staticprotected |
Title | $title | |
int | $revision | |
bool | $fuzzy | Whether to fuzzy or not |
Definition at line 215 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
MessageHandle | $handle | |
int | $revision | |
string | $text | |
User | $user |
Definition at line 246 of file TranslateEditAddons.php.