Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

translate_with_gettext_context()

3 tags 1 category

translate_with_gettext_context() — 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.

Inputs: $text (string): Text to translate. $context (string): Context information for the translators. $domain (string): Optional. Text domain. Unique identifier for retrieving translated strings. Default ‘default’.

Returns string: Translated text on success, original text on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…