MCPcopy Index your code
hub / github.com/python/cpython / dpgettext

Function dpgettext

Lib/gettext.py:608–613  ·  view source on GitHub ↗
(domain, context, message)

Source from the content-addressed store, hash-verified

606
607
608def dpgettext(domain, context, message):
609 try:
610 t = translation(domain, _localedirs.get(domain, None))
611 except OSError:
612 return message
613 return t.pgettext(context, message)
614
615
616def dnpgettext(domain, context, msgid1, msgid2, n):

Callers 2

messages.pyFile · 0.90
pgettextFunction · 0.85

Calls 3

translationFunction · 0.85
getMethod · 0.45
pgettextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…