< Extension:Translate < Hooks
TranslateTranslationAids
Available from version ??? (Gerrit change 56622)
Make new translation aids available to any message group (which must choose an implementation in its getTranslationAids() method).
Define function:
public static function onTranslateTranslationAids( &$types ) { ... }
Attach hook:
$wgHooks['TranslateTranslationAids'][] = 'MyExtensionHooks::onTranslateTranslationAids';
Called from:File(s): Translate / api/ApiQueryTranslationAids.php
Function(s): getAllowedParams

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

Details

  • array &$types: List of translation aid identifiers, numerically indexed
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.