From 1fee68f7816dce66aaaf8ebe6a8ca0d8ebbb7414 Mon Sep 17 00:00:00 2001 From: Ajda Date: Wed, 20 Mar 2024 16:14:09 +0100 Subject: [PATCH] OWImportDocuments: plural fix --- orangecontrib/text/widgets/owimportdocuments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orangecontrib/text/widgets/owimportdocuments.py b/orangecontrib/text/widgets/owimportdocuments.py index e70dc81d0..863878590 100644 --- a/orangecontrib/text/widgets/owimportdocuments.py +++ b/orangecontrib/text/widgets/owimportdocuments.py @@ -413,7 +413,8 @@ def __updateInfo(self): if ncategories < 2: text = f'{nvalid} {pl(nvalid, "document")}' else: - text = f'{nvalid} {pl(nvalid, "document")} / {ncategories} {pl(ncategories, "category")}' + text = (f'{nvalid} {pl(nvalid, "document")} / {ncategories} ' + f'{pl(ncategories, "category|categories")}') if n_skipped > 0: text = text + f', {n_skipped} skipped' elif self.__state == State.Cancelled: