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

Class FallbackTranslations

Lib/test/test_gettext.py:778–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776
777
778class FallbackTranslations(gettext.NullTranslations):
779 def gettext(self, message):
780 return f'gettext: {message}'
781
782 def ngettext(self, msgid1, msgid2, n):
783 return f'ngettext: {msgid1}, {msgid2}, {n}'
784
785 def pgettext(self, context, message):
786 return f'pgettext: {context}, {message}'
787
788 def npgettext(self, context, msgid1, msgid2, n):
789 return f'npgettext: {context}, {msgid1}, {msgid2}, {n}'
790
791
792class FallbackTestCase(GettextBaseTest):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…