(domain, context, msgid1, msgid2, n)
| 603 | |
| 604 | |
| 605 | def dnpgettext(domain, context, msgid1, msgid2, n): |
| 606 | try: |
| 607 | t = translation(domain, _localedirs.get(domain, None)) |
| 608 | except OSError: |
| 609 | if n == 1: |
| 610 | return msgid1 |
| 611 | else: |
| 612 | return msgid2 |
| 613 | return t.npgettext(context, msgid1, msgid2, n) |
| 614 | |
| 615 | |
| 616 | def gettext(message): |
no test coverage detected