Core Function
View Source on Trac ↗ translate_with_gettext_context()
translate_with_gettext_context( mixed $text, mixed $context, mixed $domain = 'default' ) Retrieves the translation of $text in the context defined in $context.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $text string | Text to translate. Required |
| $context string | Context information for the translators. Required |
| string | $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'. Required |
Return Value
(string)
Translated text on success, original text on failure.
Function Information
Since Version
2.8.0
Source File
wp-includes/l10n.php
Advertisement