Translate extension for MediaWiki
Loading...
Searching...
No Matches
PrefillTranslationHook.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\TranslatorInterface\Aid;
5
6
use
MediaWiki\Extension\Translate\MessageLoading\MessageHandle
;
7
15
interface
PrefillTranslationHook
{
24
public
function
onTranslatePrefillTranslation
( ?
string
&$translation,
MessageHandle
$handle );
25
}
MediaWiki\Extension\Translate\MessageLoading\MessageHandle
Class for pointing to messages, like Title class is for titles.
Definition
MessageHandle.php:26
MediaWiki\Extension\Translate\TranslatorInterface\Aid\PrefillTranslationHook
This is a hook handler interface, see docs/Hooks.md in core.
Definition
PrefillTranslationHook.php:15
MediaWiki\Extension\Translate\TranslatorInterface\Aid\PrefillTranslationHook\onTranslatePrefillTranslation
onTranslatePrefillTranslation(?string &$translation, MessageHandle $handle)
Provides an opportunity for a new translation to start not from as a carte blanche (the default) but ...
src
TranslatorInterface
Aid
PrefillTranslationHook.php
Generated by
1.10.0