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