Lines Matching defs:ngettext
29 def ngettext(self, singular: str, plural: str, n: int) -> str:
47 "ngettext",
186 def ngettext(
200 return ngettext
255 # the other time for the n-parameter of the ngettext function.
277 ngettext = getattr(translations, "ungettext", None)
278 if ngettext is None:
279 ngettext = translations.ngettext
284 gettext, ngettext, newstyle=newstyle, pgettext=pgettext, npgettext=npgettext
309 ngettext=translations.ngettext,
318 ngettext: t.Callable[[str, str, int], str],
327 ngettext = _make_new_ngettext(ngettext)
336 gettext=gettext, ngettext=ngettext, pgettext=pgettext, npgettext=npgettext
340 for key in ("gettext", "ngettext", "pgettext", "npgettext"):
676 >>> node = env.parse('{{ (_("foo"), _(), ngettext("foo", "bar", 42)) }}')
678 [(1, '_', 'foo'), (1, '_', ()), (1, 'ngettext', ('foo', 'bar', None))]
680 [(1, '_', ('foo',)), (1, 'ngettext', ('foo', 'bar'))]