Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
5 | namespace MediaWiki\Extension\Translate\FileFormatSupport; |
6 | |
7 | use MessageGroup; |
8 | |
9 | /** |
10 | * This is a hook handler interface, see docs/Hooks.md in core. |
11 | * Use the hook name "Translate:GettextFormat:headerFields" to register handlers implementing this interface. |
12 | * |
13 | * @stable to implement |
14 | * @ingroup Hooks |
15 | */ |
16 | interface GettextFormatHeaderFieldsHook { |
17 | /** |
18 | * Allows per group customization of headers in exported Gettext files per group. |
19 | * Certain X-headers and Plural-Forms cannot be customized. |
20 | * |
21 | * @param array<string,string> &$headers List of prefilled headers. You can remove, change or add new headers. |
22 | * @param MessageGroup $group |
23 | * @param string $languageCode |
24 | * @return void|bool True or no return value to continue or false to abort |
25 | */ |
26 | public function onTranslate_GettextFormat_headerFields( |
27 | array &$headers, |
28 | MessageGroup $group, |
29 | string $languageCode |
30 | ); |
31 | } |