Skip to main content

pgettext

No overview available.

def pgettext(
context: string,
message: string
) - > string

Fetches the translation of a message within a specific context to resolve ambiguity between identical strings.

Parameters

NameTypeDescription
contextstringThe context string used to disambiguate the message for translators.
messagestringThe message string to be translated.

Returns

TypeDescription
stringThe translated string corresponding to the provided message and context.