summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-11-05 14:46:20 -0800
committerBryan Newbold <bnewbold@archive.org>2020-11-05 14:46:20 -0800
commit2b99551390d574d7518b67731c77937422c845f9 (patch)
treeb51b9711a65c3fd538fccf997b9859d5fc69cce1 /fatcat_scholar
parenta103e9c545828e7d7b124aa20a5398127f700952 (diff)
downloadfatcat-scholar-2b99551390d574d7518b67731c77937422c845f9.tar.gz
fatcat-scholar-2b99551390d574d7518b67731c77937422c845f9.zip
web: fix ngettext() i18n wrapper
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/web.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index 2e7359b..996d353 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -96,8 +96,8 @@ def locale_gettext(translations: Any) -> Any:
def locale_ngettext(translations: Any) -> Any:
- def ngt(s, n): # noqa: ANN001,ANN201
- return translations.ungettext(s)
+ def ngt(s, p, n): # noqa: ANN001,ANN201
+ return translations.ungettext(s, p, n)
return ngt