Extension:Translate/Hooks/TranslateMessageGroupPathVariables

TranslateMessageGroupPathVariables
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.

DetailsEdit

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