translate_nooped_plural

Definition:
function translate_nooped_plural( $nooped_plural, $count, $domain = 'default' ) {}

Translate the result of _n_noop() or _nx_noop()

Parameters

  • array $nooped_plural: Array with singular, plural and context keys, usually the result of _n_noop() or _nx_noop()
  • int $count: Number of objects
  • string $domain: Optional. The domain identifier the text should be retrieved in

Source code

function translate_nooped_plural( $nooped_plural, $count, $domain = 'default' ) {

	if ( $nooped_plural['context'] )

		return _nx( $nooped_plural['singular'], $nooped_plural['plural'], $count, $nooped_plural['context'], $domain );

	else

		return _n( $nooped_plural['singular'], $nooped_plural['plural'], $count, $domain );

}

10401

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: