gettext_with_context

过滤钩子
apply_filters( 'gettext_with_context', $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_contextgettext_with_context_domainngettext_with_context_domainwidget_text_contentdelete_site_email_content
相关方法
translate_with_contextget_the_contentget_the_content_feedget_url_in_contenttranslate_with_gettext_contextthe_content
引入
2.8.0
弃用
-

gettext_with_context: gettext_with_context}: 该函数为给定的文本字符串检索在当前语言环境下的翻译字符串。

根据上下文信息过滤文本及其翻译。

$translation = apply_filters( 'gettext_with_context', $translation, $text, $context, $domain );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-13 16:36:11

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

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

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