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

Method gettext

Lib/gettext.py:439–448  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

437 transidx += 8
438
439 def gettext(self, message):
440 missing = object()
441 tmsg = self._catalog.get(message, missing)
442 if tmsg is missing:
443 tmsg = self._catalog.get((message, self.plural(1)), missing)
444 if tmsg is not missing:
445 return tmsg
446 if self._fallback:
447 return self._fallback.gettext(message)
448 return message
449
450 def ngettext(self, msgid1, msgid2, n):
451 try:

Callers 5

test_big_endian_fileMethod · 0.95
test_translationsMethod · 0.95
gettextMethod · 0.45
dgettextFunction · 0.45

Calls 2

getMethod · 0.45
pluralMethod · 0.45

Tested by 3

test_big_endian_fileMethod · 0.76
test_translationsMethod · 0.76