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