gettext_with_context_{$domain}

过滤钩子
apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain )
参数
  • (string) $translation Translated text.
    Required:
  • (string) $text Text to translate.
    Required:
  • (string) $context Context information for the translators.
    Required:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required:
定义位置
相关勾子
ngettext_with_context_domaingettext_with_contextngettext_with_contextgettext_domainngettext_domain
相关方法
translate_with_contextget_the_content_feedget_the_contentget_edit_comment_linkget_next_comments_linkget_the_comments_pagination
引入
5.5.0
弃用
-

gettext_with_context_{$domain}: 该函数为给定的文本字符串检索在当前语言环境下指定域中的翻译字符串。

根据一个域的上下文信息过滤文本及其翻译。

钩子名称的动态部分,$domain,指的是文本域。

$translation = apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 15:32:55

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: