Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5978716
PrefillTranslationHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
913 B
Referenced Files
None
Subscribers
None
PrefillTranslationHook.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\TranslatorInterface\Aid
;
use
MediaWiki\Extension\Translate\MessageLoading\MessageHandle
;
/**
* 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
* @ingroup Hooks
*/
interface
PrefillTranslationHook
{
/**
* Provides an opportunity for a new translation to start not from as a carte blanche (the default)
* but from some prefilled string
*
* @param string|null &$translation The translation string as it stands, or null for new translations
* @param MessageHandle $handle The current MessageHandle object
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onTranslatePrefillTranslation
(
?
string
&
$translation
,
MessageHandle
$handle
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:32 (3 d, 22 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
89/fb/a90cbb96899d01a9545572739dfd
Default Alt Text
PrefillTranslationHook.php (913 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment