NOOP_Translations::translate_plural() WordPress Method

The NOOP_Translations::translate_plural() method is used to translate a string with a given number of plural forms. The method accepts two parameters: the string to be translated and the number of plural forms.

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


Parameters

$singular

(string)(Required)

$plural

(string)(Required)

$count

(int)(Required)

$context

(string)(Optional)

Default value: null


Top ↑

Source

File: wp-includes/pomo/translations.php

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.