Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\FileFormatSupport\GettextFormatHeaderFieldsHook Interface Reference

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

Inheritance diagram for MediaWiki\Extension\Translate\FileFormatSupport\GettextFormatHeaderFieldsHook:
MediaWiki\Extension\Translate\HookRunner

Public Member Functions

 onTranslate_GettextFormat_headerFields (array &$headers, MessageGroup $group, string $languageCode)
 Allows per group customization of headers in exported Gettext files per group.
 

Detailed Description

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.

Member Function Documentation

◆ onTranslate_GettextFormat_headerFields()

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.

Parameters
array<string,string>&$headers List of prefilled headers. You can remove, change or add new headers.
MessageGroup$group
string$languageCode
Returns
void|bool True or no return value to continue or false to abort

Implemented in MediaWiki\Extension\Translate\HookRunner.


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