| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Languages\Hook; |
| 4 | |
| 5 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
| 6 | /** |
| 7 | * This is a hook handler interface, see docs/Hooks.md. |
| 8 | * Use the hook name "Language::getMessagesFileName" to register handlers implementing this interface. |
| 9 | * |
| 10 | * @stable to implement |
| 11 | * @ingroup Hooks |
| 12 | */ |
| 13 | interface Language__getMessagesFileNameHook { |
| 14 | /** |
| 15 | * Use this hook to change the path of a localisation file. |
| 16 | * |
| 17 | * @since 1.35 |
| 18 | * |
| 19 | * @param string $code Language code or the language we're looking for a messages file for |
| 20 | * @param string &$file Messages file path. You can override this to change the location. |
| 21 | * @return bool|void True or no return value to continue or false to abort |
| 22 | */ |
| 23 | public function onLanguage__getMessagesFileName( $code, &$file ); |
| 24 | } |