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}: 該函式為給定的文字字串檢索在當前語言環境下的翻譯字串。

根據上下文資訊過濾文字及其翻譯。

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

常見問題

FAQs
檢視更多 >