Gettext_Translations::set_header()

最后更新于:2021-11-25 19:52:45

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

参数

$header

(string) (Required)

$value

(string) (Required)

源文件

文件: gc-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 );
			}
		}