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

Method gettext

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

Source from the content-addressed store, hash-verified

436 transidx += 8
437
438 def gettext(self, message):
439 missing = object()
440 tmsg = self._catalog.get(message, missing)
441 if tmsg is missing:
442 tmsg = self._catalog.get((message, self.plural(1)), missing)
443 if tmsg is not missing:
444 return tmsg
445 if self._fallback:
446 return self._fallback.gettext(message)
447 return message
448
449 def ngettext(self, msgid1, msgid2, n):
450 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