MCPcopy Index your code
hub / github.com/python/cpython / ngettext

Method ngettext

Lib/gettext.py:296–303  ·  view source on GitHub ↗
(self, msgid1, msgid2, n)

Source from the content-addressed store, hash-verified

294 return message
295
296 def ngettext(self, msgid1, msgid2, n):
297 if self._fallback:
298 return self._fallback.ngettext(msgid1, msgid2, n)
299 n = _as_int2(n)
300 if n == 1:
301 return msgid1
302 else:
303 return msgid2
304
305 def pgettext(self, context, message):
306 if self._fallback:

Callers 1

Calls 2

_as_int2Function · 0.85
ngettextMethod · 0.45

Tested by 1