fix duplicates message

This commit is contained in:
Damien Elmes 2012-09-10 04:33:44 +09:00
parent 926d407f30
commit 583130d416

View file

@ -1179,8 +1179,8 @@ update cards set usn=?, mod=?, did=? where odid=0 and id in """ + ids2str(
self.mw.progress.start() self.mw.progress.start()
res = self.mw.col.findDupes(fname, search) res = self.mw.col.findDupes(fname, search)
t = "<html><body>" t = "<html><body>"
t += _("Found %(a)d duplicates in %(b)d notes.") % dict( t += _("Found %(a)d group of duplicates across %(b)d notes.") % dict(
a=sum(len(r[1]) for r in res), b=len(res)) b=sum(len(r[1]) for r in res), a=len(res))
t += "<p><ol>" t += "<p><ol>"
for val, nids in res: for val, nids in res:
t += '<li><a href="%s">%s</a>: %s</a>' % ( t += '<li><a href="%s">%s</a>: %s</a>' % (