ngettext_with_context
apply_filters( ‘ngettext_with_context’, string $translation , string $single , string $plural , string $number , string $context , string $domain )
过滤器::使用gettext上下文过滤字符串的单数或复数形式。
Filter Hook: Filters the singular or plural form of a string with gettext context.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$translation | (string) | 翻译文本。 |
$single | (string) | 如果数字是单数,则使用的文本。 |
$plural | (string) | 如果数字是复数,则使用的文本。 |
$number | (string) | 用单数或复数形式来比较的数字。 |
$context | (string) | 译者的上下文信息。 |
$domain | (string) | 文本域。检索转换字符串的唯一标识符。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-includes/l10n.php:487 | 1 | 0 |
ngettext_with_context 为WP2原创文章,链接:https://www.wp2.cn/hook/ngettext_with_context/