mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
say "notes exported", not "cards", if appropriate
This commit is contained in:
parent
408fc63b48
commit
4ebb26fe6b
1 changed files with 7 additions and 2 deletions
|
@ -41,6 +41,7 @@ class ExportDialog(QDialog):
|
||||||
def exporterChanged(self, idx):
|
def exporterChanged(self, idx):
|
||||||
self.exporter = exporters()[idx][1](self.col)
|
self.exporter = exporters()[idx][1](self.col)
|
||||||
self.isApkg = hasattr(self.exporter, "includeSched")
|
self.isApkg = hasattr(self.exporter, "includeSched")
|
||||||
|
self.isTextNote = hasattr(self.exporter, "includeTags")
|
||||||
self.hideTags = hasattr(self.exporter, "hideTags")
|
self.hideTags = hasattr(self.exporter, "hideTags")
|
||||||
self.frm.includeSched.setVisible(self.isApkg)
|
self.frm.includeSched.setVisible(self.isApkg)
|
||||||
self.frm.includeMedia.setVisible(self.isApkg)
|
self.frm.includeMedia.setVisible(self.isApkg)
|
||||||
|
@ -103,7 +104,11 @@ class ExportDialog(QDialog):
|
||||||
period = 5000
|
period = 5000
|
||||||
else:
|
else:
|
||||||
period = 3000
|
period = 3000
|
||||||
msg = ngettext("%d card exported.", "%d cards exported.", \
|
if self.isTextNote:
|
||||||
|
msg = ngettext("%d note exported.", "%d notes exported.",
|
||||||
|
self.exporter.count) % self.exporter.count
|
||||||
|
else:
|
||||||
|
msg = ngettext("%d card exported.", "%d cards exported.",
|
||||||
self.exporter.count) % self.exporter.count
|
self.exporter.count) % self.exporter.count
|
||||||
tooltip(msg, period=period)
|
tooltip(msg, period=period)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue