wpseek.com
WordPress开发者和主题制作者的搜索引擎



ngettext_{$domain} › WordPress过滤钩子

Since5.5.0
已弃用n/a
› apply_filters( "ngettext_{$domain}", $translation, $single, $plural, $number, $domain )
参数: (5)
  • () translation Translated text.
    Required: Yes
  • () single The text to be used if the number is singular.
    Required: Yes
  • () plural The text to be used if the number is plural.
    Required: Yes
  • () number The number to compare against to use either the singular or plural form.
    Required: Yes
  • () domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
定义在:
文档:

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

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




源码

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