Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6071306
GettextFormatHeaderFieldsHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1003 B
Referenced Files
None
Subscribers
None
GettextFormatHeaderFieldsHook.php
View Options
<?php
declare
(
strict_types
=
1
);
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
namespace
MediaWiki\Extension\Translate\FileFormatSupport
;
use
MessageGroup
;
/**
* 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
* @ingroup Hooks
*/
interface
GettextFormatHeaderFieldsHook
{
/**
* Allows per group customization of headers in exported Gettext files per group.
* Certain X-headers and Plural-Forms cannot be customized.
*
* @param array<string,string> &$headers List of prefilled headers. You can remove, change or add new headers.
* @param MessageGroup $group
* @param string $languageCode
* @return void|bool True or no return value to continue or false to abort
*/
public
function
onTranslate_GettextFormat_headerFields
(
array
&
$headers
,
MessageGroup
$group
,
string
$languageCode
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 07:06 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/12/3306a5333dbb0258f8345802d640
Default Alt Text
GettextFormatHeaderFieldsHook.php (1003 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment