MCPcopy Index your code
hub / github.com/RustPython/RustPython / ngettext

Method ngettext

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

_as_int2Function · 0.85
ngettextMethod · 0.45

Tested by 1