From 2b99551390d574d7518b67731c77937422c845f9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 5 Nov 2020 14:46:20 -0800 Subject: web: fix ngettext() i18n wrapper --- fatcat_scholar/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar') 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 -- cgit v1.2.3