Method
__init__
(self, code: str, translations: gettext.NullTranslations)
Source from the content-addressed store, hash-verified
| 516 | """Locale implementation using the `gettext` module.""" |
| 517 | |
| 518 | def __init__(self, code: str, translations: gettext.NullTranslations) -> None: |
| 519 | self.ngettext = translations.ngettext |
| 520 | self.gettext = translations.gettext |
| 521 | # self.gettext must exist before __init__ is called, since it |
| 522 | # calls into self.translate |
| 523 | super().__init__(code) |
| 524 | |
| 525 | def translate( |
| 526 | self, |
Callers
nothing calls this directly
Tested by
no test coverage detected