MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / dngettext

Function dngettext

tools/python-3.11.9-amd64/Lib/gettext.py:586–594  ·  view source on GitHub ↗
(domain, msgid1, msgid2, n)

Source from the content-addressed store, hash-verified

584
585
586def dngettext(domain, msgid1, msgid2, n):
587 try:
588 t = translation(domain, _localedirs.get(domain, None))
589 except OSError:
590 if n == 1:
591 return msgid1
592 else:
593 return msgid2
594 return t.ngettext(msgid1, msgid2, n)
595
596
597def dpgettext(domain, context, message):

Callers 1

ngettextFunction · 0.85

Calls 3

translationFunction · 0.85
getMethod · 0.45
ngettextMethod · 0.45

Tested by

no test coverage detected