Translations::set_header( string $header, string $value )

In this article

Sets $header PO header to $value


If the header already exists, it will be overwritten

TODO: this should be out of this class, it is gettext specific


header name, without trailing :
header value, without trailing n


public function set_header( $header, $value ) {
	$this->headers[ $header ] = $value;

User Contributed Notes

You must log in before being able to contribute a note or feedback.