Lines Matching refs:npgettext
36 def npgettext(self, context: str, singular: str, plural: str, n: int) -> str:
49 "npgettext",
224 def npgettext(
242 return npgettext
282 npgettext = getattr(translations, "npgettext", None)
284 gettext, ngettext, newstyle=newstyle, pgettext=pgettext, npgettext=npgettext
300 if hasattr(translations, "npgettext"):
301 npgettext = translations.npgettext
304 def npgettext(c: str, s: str, p: str, n: int) -> str:
312 npgettext=npgettext,
321 npgettext: t.Optional[t.Callable[[str, str, str, int], str]] = None,
332 if npgettext is not None:
333 npgettext = _make_new_npgettext(npgettext)
336 gettext=gettext, ngettext=ngettext, pgettext=pgettext, npgettext=npgettext
340 for key in ("gettext", "ngettext", "pgettext", "npgettext"):