< Extension:Translate < Hooks
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.

Details

  • MessageGroup $group
  • array &$variables: Variable name => replacement
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.