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

Function dgettext

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

Source from the content-addressed store, hash-verified

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

Callers 1

gettextFunction · 0.85

Calls 3

translationFunction · 0.85
getMethod · 0.45
gettextMethod · 0.45

Tested by

no test coverage detected