Skip to main content

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

NameTypeDescription
contextstringThe context string used to distinguish between identical messages in different parts of the application.
messagestringThe actual text string to be translated.

Returns

TypeDescription
stringThe translated string in the current language, or the original message if no translation is found.