Extension:Translate/Hooks/Translate:newTranslation

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Translate:newTranslation
Available from version ???
Event triggered when non-fuzzy translation has been made
Define function:
public static function onTranslate_newTranslation( $handle, $revisionId, $text, $user ) { ... }
Attach hook:
$wgHooks['Translate:newTranslation'][] = 'MyExtensionHooks::onTranslate_newTranslation';
Called from:File(s): Translate / TranslateEditAddons.php
Function(s): onSave

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:Translate:newTranslation extensions.

Details

  • MessageHandle $handle
  • int $revisionId
  • string $text: Content of the new translation
  • User $user: User who created or changed the translation