pgettext
No overview available.
def pgettext(
context: string,
message: string
) - > string
Translates a message within a specific context to provide disambiguation for strings that have multiple meanings.
Parameters
| Name | Type | Description |
|---|---|---|
| context | string | The context string used to distinguish between identical messages in different parts of the application. |
| message | string | The actual text string to be translated. |
Returns
| Type | Description |
|---|---|
string | The translated string in the current language, or the original message if no translation is found. |