Translates a plural string.
Parameters
$singular
stringrequired$plural
stringrequired$count
intrequired$context
stringoptionalDefault:
null
Source
public function translate_plural( $singular, $plural, $count, $context = null ) {
return 1 === (int) $count ? $singular : $plural;
}
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.