(domain, context, msgid1, msgid2, n)
| 614 | |
| 615 | |
| 616 | def dnpgettext(domain, context, msgid1, msgid2, n): |
| 617 | try: |
| 618 | t = translation(domain, _localedirs.get(domain, None)) |
| 619 | except OSError: |
| 620 | n = _as_int2(n) |
| 621 | if n == 1: |
| 622 | return msgid1 |
| 623 | else: |
| 624 | return msgid2 |
| 625 | return t.npgettext(context, msgid1, msgid2, n) |
| 626 | |
| 627 | |
| 628 | def gettext(message): |
no test coverage detected
searching dependent graphs…