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

Retrieve 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, register_widget_control, translate_level_to_role, translate_user_role, unregister_widget_control

Top Google Results

User discussions

wpseek mobile