Searched refs:npgettext (Results 1 - 3 of 3) sorted by relevance
/third_party/jinja2/ |
H A D | ext.py | 36 def npgettext(self, context: str, singular: str, plural: str, n: int) -> str: member in _TranslationsContext 49 "npgettext", 224 def npgettext( function 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 304 def npgettext(c: str, s: str, p: str, n: int) -> str: global() function [all...] |
/third_party/python/Lib/test/ |
H A D | test_gettext.py | 326 x = gettext.npgettext('With context', 329 x = gettext.npgettext('With context', 346 x = t.npgettext('With context', 349 x = t.npgettext('With context', 551 self.npgettext = self.t.npgettext 560 unless(isinstance(self.npgettext('', '', '', 1), str)) 561 unless(isinstance(self.npgettext('', '', '', 2), str)) 577 t = self.npgettext("With context", 581 t = self.npgettext("Wit [all...] |
/third_party/python/Lib/ |
H A D | gettext.py | 57 'ngettext', 'pgettext', 'dpgettext', 'npgettext', 293 def npgettext(self, context, msgid1, msgid2, n): member in NullTranslations 295 return self._fallback.npgettext(context, msgid1, msgid2, n) 311 allowed = {'gettext', 'ngettext', 'npgettext', 'pgettext'} 452 def npgettext(self, context, msgid1, msgid2, n): member in GNUTranslations 458 return self._fallback.npgettext(context, msgid1, msgid2, n) 601 return t.npgettext(context, msgid1, msgid2, n) 616 def npgettext(context, msgid1, msgid2, n): function
|
Completed in 3 milliseconds