WordPress at a glance
function is not described

Gettext_Translations::make_plural_form_function() public WP 1.0

Makes a function, which will return the right translation index, according to the plural forms header

{} It's a method of the class: Gettext_Translations{}

No Hooks.

Return

null. Nothing.

Usage

$Gettext_Translations = new Gettext_Translations();
$Gettext_Translations->make_plural_form_function( $nplurals, $expression );
$nplurals(int) (required)
-
$expression(string) (required)
-

Code of Gettext_Translations::make_plural_form_function() WP 5.7.1

<?php
function make_plural_form_function( $nplurals, $expression ) {
	try {
		$handler = new Plural_Forms( rtrim( $expression, ';' ) );
		return array( $handler, 'get' );
	} catch ( Exception $e ) {
		// Fall back to default plural-form function.
		return $this->make_plural_form_function( 2, 'n != 1' );
	}
}