Skip to content

Commit a2b74ce

Browse files
committed
backport adjust pluralization
Backport geopython/MetaSearch@83b88f6
1 parent 9a8dcec commit a2b74ce

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

python/plugins/MetaSearch/dialogs/maindialog.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,9 @@ def display_results(self):
473473

474474
position = self.catalog.results['returned'] + self.startfrom
475475

476-
msg = self.tr('Showing %d - %d of %d result%s') % (
477-
self.startfrom + 1, position,
478-
self.catalog.results['matches'],
479-
's'[self.catalog.results['matches'] == 1:])
476+
msg = self.tr('Showing %d - %d of %n result(s)', 'number of results',
477+
self.catalog.results['matches']) % (self.startfrom + 1,
478+
position)
480479

481480
self.lblResults.setText(msg)
482481

0 commit comments

Comments
 (0)