This is a hook handler interface, see docs/Hooks.md in core. More...
Public Member Functions | |
onTranslatePrefillTranslation (?string &$translation, MessageHandle $handle) | |
Provides an opportunity for a new translation to start not from as a carte blanche (the default) but from some prefilled string. | |
This is a hook handler interface, see docs/Hooks.md in core.
Use the hook name "TranslatePrefillTranslation" to register handlers implementing this interface.
@stable to implement
Definition at line 15 of file PrefillTranslationHook.php.
MediaWiki\Extension\Translate\TranslatorInterface\Aid\PrefillTranslationHook::onTranslatePrefillTranslation | ( | ?string & | $translation, |
MessageHandle | $handle ) |
Provides an opportunity for a new translation to start not from as a carte blanche (the default) but from some prefilled string.
string | null | &$translation | The translation string as it stands, or null for new translations |
MessageHandle | $handle | The current MessageHandle object |
Implemented in MediaWiki\Extension\Translate\HookRunner.