wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



ngettext_with_context_{$domain} › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( "ngettext_with_context_{$domain}", $translation, $single, $plural, $number, $context, $domain )
Parameter: (6)
  • () translation Translated text.
    Erforderlich: Ja
  • () single The text to be used if the number is singular.
    Erforderlich: Ja
  • () plural The text to be used if the number is plural.
    Erforderlich: Ja
  • () number The number to compare against to use either the singular or plural form.
    Erforderlich: Ja
  • () context Context information for the translators.
    Erforderlich: Ja
  • () domain Text domain. Unique identifier for retrieving translated strings.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the singular or plural form of a string with gettext context for a domain.

The dynamic portion of the hook name, `$domain`, refers to the text domain.




Quellcode

$translation = apply_filters( "ngettext_with_context_{$domain}", $translation, $single, $plural, $number, $context, $domain );