wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



ngettext_with_context_{$domain} › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
apply_filters( "ngettext_with_context_{$domain}", $translation, $single, $plural, $number, $context, $domain )
Parametry: (6)
  • (string) $translation Translated text.
    Wymagane: Tak
  • (string) $single The text to be used if the number is singular.
    Wymagane: Tak
  • (string) $plural The text to be used if the number is plural.
    Wymagane: Tak
  • (int) $number The number to compare against to use either the singular or plural form.
    Wymagane: Tak
  • (string) $context Context information for the translators.
    Wymagane: Tak
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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