Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5978504
NewTranslationHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
964 B
Referenced Files
None
Subscribers
None
NewTranslationHook.php
View Options
<?php
declare
(
strict_types
=
1
);
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
namespace
MediaWiki\Extension\Translate\TranslatorInterface
;
use
MediaWiki\Extension\Translate\MessageLoading\MessageHandle
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md in core.
* Use the hook name "Translate:newTranslation" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
NewTranslationHook
{
/**
* Event triggered when non-fuzzy translation has been made
*
* @param MessageHandle $handle
* @param int $revisionId
* @param string $text Content of the new translation
* @param User $user User who created or changed the translation
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onTranslate_newTranslation
(
MessageHandle
$handle
,
int
$revisionId
,
string
$text
,
User
$user
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:26 (3 d, 18 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
82/cc/cb3ed7832b537d2db615e5363386
Default Alt Text
NewTranslationHook.php (964 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment