MCPcopy Index your code
hub / github.com/RustPython/RustPython / dpgettext

Function dpgettext

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

Source from the content-addressed store, hash-verified

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

Callers 1

pgettextFunction · 0.85

Calls 3

translationFunction · 0.85
getMethod · 0.45
pgettextMethod · 0.45

Tested by

no test coverage detected