translate_with_gettext_context


translate_with_gettext_context ( $text, $context, $domain = 'default' )

Parameters:
  • (string) text Text to translate.
  • (string) context Context information for the translators.
  • (string) domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Returns:
  • (string) Translated text on success, original text on failure.
Defined at:
Change Log:
  • 5: .

Description

Retrieves the translation of $text in the context defined in $context.If there is no translation, or the text domain isn't loaded, the original text is returned. *Note:* Don't use translate_with_gettext_context() directly, use _x() or related functions.

Related Functions

translate_with_context, wp_interactivity_get_context, register_widget_control, translate_level_to_role, translate_user_role

Top Google Results

User discussions

wpseek mobile