
2020年最新版本WordPress本地环境搭建与安装教程
apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain )
ngettext_with_context是ngettext的一个变体,它需要一个额外的参数$context,以帮助区分一个字符串的正确翻译,以防它在不同的语境中被用于不同的含义。
使用gettext上下文过滤字符串的单数或复数形式。
$translation = apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain );