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: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
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.