Gettext_Translations::set_header

Advertisement

Syntax Syntax

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

Parameters Parameters

$header

(string) (Required)

$value

(string) (Required)

Source Source

File: wp-includes/pomo/translations.php

		function set_header( $header, $value ) {
			parent::set_header( $header, $value );
			if ( 'Plural-Forms' === $header ) {
				list( $nplurals, $expression )     = $this->nplurals_and_expression_from_header( $this->get_header( 'Plural-Forms' ) );
				$this->_nplurals                   = $nplurals;
				$this->_gettext_select_plural_form = $this->make_plural_form_function( $nplurals, $expression );
			}
		}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.