MediaWiki master
MediaWiki\Languages\Hook\Language__getMessagesFileNameHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

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

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

Stability: 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: