MediaWiki  master
MediaWiki\Languages\Hook\Language__getMessagesFileNameHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Languages\Hook\Language__getMessagesFileNameHook:

Public Member Functions

 onLanguage__getMessagesFileName ( $code, &$file)
 Use this hook to change the path of a localisation file. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "Language::getMessagesFileName" to register handlers implementing this interface.

Stable to implement

Definition at line 13 of file Language__getMessagesFileNameHook.php.

Member Function Documentation

◆ onLanguage__getMessagesFileName()

MediaWiki\Languages\Hook\Language__getMessagesFileNameHook::onLanguage__getMessagesFileName (   $code,
$file 
)

Use this hook to change the path of a localisation file.

Since
1.35
Parameters
string$codeLanguage code or the language we're looking for a messages file for
string&$fileMessages file path. You can override this to change the location.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: