This is a hook handler interface, see docs/Hooks.md in core. More...
Public Member Functions | |
onTranslate_GettextFormat_headerFields (array &$headers, MessageGroup $group, string $languageCode) | |
Allows per group customization of headers in exported Gettext files per group. | |
This is a hook handler interface, see docs/Hooks.md in core.
Use the hook name "Translate:GettextFormat:headerFields" to register handlers implementing this interface.
@stable to implement
Definition at line 16 of file GettextFormatHeaderFieldsHook.php.
MediaWiki\Extension\Translate\FileFormatSupport\GettextFormatHeaderFieldsHook::onTranslate_GettextFormat_headerFields | ( | array & | $headers, |
MessageGroup | $group, | ||
string | $languageCode ) |
Allows per group customization of headers in exported Gettext files per group.
Certain X-headers and Plural-Forms cannot be customized.
array<string,string> | &$headers List of prefilled headers. You can remove, change or add new headers. | |
MessageGroup | $group | |
string | $languageCode |
Implemented in MediaWiki\Extension\Translate\HookRunner.