Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorInterface\NewTranslationHook Interface Reference

This is a hook handler interface, see docs/Hooks.md in core. More...

Inheritance diagram for MediaWiki\Extension\Translate\TranslatorInterface\NewTranslationHook:
MediaWiki\Extension\Translate\HookRunner

Public Member Functions

 onTranslate_newTranslation (MessageHandle $handle, int $revisionId, string $text, User $user)
 Event triggered when non-fuzzy translation has been made.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md in core.

Use the hook name "Translate:newTranslation" to register handlers implementing this interface.

@stable to implement

Definition at line 18 of file NewTranslationHook.php.

Member Function Documentation

◆ onTranslate_newTranslation()

MediaWiki\Extension\Translate\TranslatorInterface\NewTranslationHook::onTranslate_newTranslation ( MessageHandle $handle,
int $revisionId,
string $text,
User $user )

Event triggered when non-fuzzy translation has been made.

Parameters
MessageHandle$handle
int$revisionId
string$textContent of the new translation
User$userUser who created or changed the translation
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Extension\Translate\HookRunner.


The documentation for this interface was generated from the following file: