backport adjust pluralization

backport 83b88f67ab
This commit is contained in:
Tom Kralidis 2014-11-24 15:53:58 -05:00
parent 2ec4c2abd3
commit af3418ac79

View File

@ -473,10 +473,9 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
position = self.catalog.results['returned'] + self.startfrom position = self.catalog.results['returned'] + self.startfrom
msg = self.tr('Showing %d - %d of %d result%s') % ( msg = self.tr('Showing %d - %d of %n result(s)', 'number of results',
self.startfrom + 1, position, self.catalog.results['matches']) % (self.startfrom + 1,
self.catalog.results['matches'], position)
's'[self.catalog.results['matches'] == 1:])
self.lblResults.setText(msg) self.lblResults.setText(msg)