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



ngettext_with_context › WordPress过滤钩子

Since2.8.0
已弃用n/a
apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain )
参数: (6)
  • (string) $translation Translated text.
    Required: Yes
  • (string) $single The text to be used if the number is singular.
    Required: Yes
  • (string) $plural The text to be used if the number is plural.
    Required: Yes
  • (int) $number The number to compare against to use either the singular or plural form.
    Required: Yes
  • (string) $context Context information for the translators.
    Required: Yes
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
定义在:
文档:

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





源码

$translation = apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain );