Glossary Term
translate_nooped_plural()
translate_nooped_plural() — Translates and returns the singular or plural form of a string that’s been registered with _n_noop() or _nx_noop(). Used when you want to use a translatable plural string once the number is known. Example: $message = _n_noop( ‘%s post’, ‘%s posts’, ‘text-domain’ ); … printf( translate_nooped_plural( $message, $count, ‘text-domain’ ), number_format_i18n( $count ) );
Inputs: $nooped_plural (array): Array that is usually a return value from _n_noop() or _nx_noop(). Field $singular (string): Singular form to be localized. Field $plural (string): Plural form to be localized. Field $context (string|null): Context information for the translators. Field $domain (string|null): Text domain. $count (int): Number of objects. $domain (string): Optional. Text domain. Unique identifier for retrieving translated strings. If $nooped_plural contains a text domain passed to _n_noop() or _nx_noop(), it will override this value. Default ‘default’.
Returns string: Either $singular or $plural translated text.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
