Gettext_Translations::gettext_select_plural_form

Advertisement

Summery Summery

The gettext implementation of select_plural_form.

Syntax Syntax

Gettext_Translations::gettext_select_plural_form( int $count )

Description Description

It lives in this class, because there are more than one descendand, which will use it and they can’t share it effectively.

Parameters Parameters

$count

(int) (Required)

Source Source

File: wp-includes/pomo/translations.php

		function gettext_select_plural_form( $count ) {
			if ( ! isset( $this->_gettext_select_plural_form ) || is_null( $this->_gettext_select_plural_form ) ) {
				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 );
			}
			return call_user_func( $this->_gettext_select_plural_form, $count );
		}

Advertisement

Advertisement

Leave a Reply

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