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 ) #
Contents
Parameters
- $singular
- (string)(Required) 
- $plural
- (string)(Required) 
- $count
- (int)(Required) 
- $context
- (string)(Optional) - Default value: null 
Source
File: wp-includes/pomo/translations.php
		public function translate_plural( $singular, $plural, $count, $context = null ) {
			return 1 == $count ? $singular : $plural;
		}
Expand full source codeCollapse full source codeView on TracView on GitHub