Skip to content

Commit

Permalink
OWImportDocuments: plural fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Mar 20, 2024
1 parent 6c692b4 commit 1fee68f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orangecontrib/text/widgets/owimportdocuments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1fee68f

Please sign in to comment.