(self, context, msgid1, msgid2, n)
| 462 | return message |
| 463 | |
| 464 | def npgettext(self, context, msgid1, msgid2, n): |
| 465 | ctxt_msg_id = self.CONTEXT % (context, msgid1) |
| 466 | try: |
| 467 | tmsg = self._catalog[ctxt_msg_id, self.plural(n)] |
| 468 | except KeyError: |
| 469 | if self._fallback: |
| 470 | return self._fallback.npgettext(context, msgid1, msgid2, n) |
| 471 | if n == 1: |
| 472 | tmsg = msgid1 |
| 473 | else: |
| 474 | tmsg = msgid2 |
| 475 | return tmsg |
| 476 | |
| 477 | |
| 478 | # Locate a .mo file using the gettext strategy |
no test coverage detected