< Extension:Translate < Hooks
TranslateBeforeAddModules
Available from version ??? (Gerrit change 46932)
Provides an opportunity to load extra modules
Define function:
public static function onTranslateBeforeAddModules( &$modules ) { ... }
Attach hook:
$wgHooks['TranslateBeforeAddModules'][] = 'MyExtensionHooks::onTranslateBeforeAddModules';
Called from:File(s): Translate / utils/TuxMessageTable.php
Function(s): fullTable

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

Details

  • array &$modules: List of resource loader module names
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.