1

Generate summary differently depending on profile

Former-commit-id: 69909c0ba08ff806081bcdd67969e1f44293f638
This commit is contained in:
Alex Yatskov 2013-11-11 15:47:05 -08:00
parent 6b63422efb
commit 20b67e53d2

View File

@ -455,10 +455,13 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
if factId is None: if factId is None:
return False return False
if markup['reading']: if profile == 'vocab':
summary = u'{expression} [{reading}]'.format(**markup) if markup['reading']:
summary = u'{expression} [{reading}]'.format(**markup)
else:
summary = markup['expression']
else: else:
summary = markup['expression'] summary = markup['character']
self.addedFacts.append(factId) self.addedFacts.append(factId)
self.listDefinitions.addItem(summary) self.listDefinitions.addItem(summary)