| 776 | |
| 777 | |
| 778 | class 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 | |
| 792 | class FallbackTestCase(GettextBaseTest): |
no outgoing calls
searching dependent graphs…