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,指的是文字域。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$translation = apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain );
$translation = apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain );
$translation = apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain );

常見問題

FAQs
檢視更多 >