Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
NewTranslationHook.php
1<?php
2declare( strict_types = 1 );
3
4// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
5
6namespace MediaWiki\Extension\Translate\TranslatorInterface;
7
9use User;
10
28 public function onTranslate_newTranslation( MessageHandle $handle, int $revisionId, string $text, User $user );
29}
Class for pointing to messages, like Title class is for titles.
This is a hook handler interface, see docs/Hooks.md in core.
onTranslate_newTranslation(MessageHandle $handle, int $revisionId, string $text, User $user)
Event triggered when non-fuzzy translation has been made.