This is a hook handler interface, see docs/Hooks.md in core. More...
Public Member Functions | |
onTranslate_newTranslation (MessageHandle $handle, int $revisionId, string $text, User $user) | |
Event triggered when non-fuzzy translation has been made. | |
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.
MediaWiki\Extension\Translate\TranslatorInterface\NewTranslationHook::onTranslate_newTranslation | ( | MessageHandle | $handle, |
int | $revisionId, | ||
string | $text, | ||
User | $user ) |
Event triggered when non-fuzzy translation has been made.
MessageHandle | $handle | |
int | $revisionId | |
string | $text | Content of the new translation |
User | $user | User who created or changed the translation |
Implemented in MediaWiki\Extension\Translate\HookRunner.