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

Function dgettext

Lib/gettext.py:588–593  ·  view source on GitHub ↗
(domain, message)

Source from the content-addressed store, hash-verified

586
587
588def dgettext(domain, message):
589 try:
590 t = translation(domain, _localedirs.get(domain, None))
591 except OSError:
592 return message
593 return t.gettext(message)
594
595
596def dngettext(domain, msgid1, msgid2, n):

Callers 2

messages.pyFile · 0.90
gettextFunction · 0.85

Calls 3

translationFunction · 0.85
getMethod · 0.45
gettextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…