Available from version ??? (Gerrit change 113787)
Allows to manipulate the list of variables for message group path patterns.
Define function:
public static function onTranslateMessageGroupPathVariables( $groups, &$variables ) { ... }
Attach hook:
$wgHooks['TranslateMessageGroupPathVariables'][] = 'MyExtensionHooks::onTranslateMessageGroupPathVariables';
Called from:File(s): Translate / messagegroups/FileBasedMessageGroup.php
Function(s): replaceVariables

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

Details edit

  • MessageGroup $group
  • array &$variables: Variable name => replacement