NOOP_Translations::translate_plural( string $singular, string $plural, int $count, string $context = null ): string

In this article

Translates a plural string.

Parameters

$singularstringrequired
$pluralstringrequired
$countintrequired
$contextstringoptional

Default:null

Return

string

Source

public function translate_plural( $singular, $plural, $count, $context = null ) {
	return 1 === (int) $count ? $singular : $plural;
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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