diff --git a/ui/preferences.ui b/ui/preferences.ui index 6a2a5cf..88c26a9 100644 --- a/ui/preferences.ui +++ b/ui/preferences.ui @@ -161,7 +161,7 @@ - Profile + Displayed profile diff --git a/yomi_base/gen/about_ui.py b/yomi_base/gen/about_ui.py index d3b643e..3702698 100644 --- a/yomi_base/gen/about_ui.py +++ b/yomi_base/gen/about_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'ui/about.ui' # -# Created: Fri Nov 15 20:29:12 2013 +# Created: Sat Nov 16 11:47:57 2013 # by: PyQt4 UI code generator 4.10 # # WARNING! All changes made in this file will be lost! diff --git a/yomi_base/gen/preferences_ui.py b/yomi_base/gen/preferences_ui.py index b1f1866..030a73a 100644 --- a/yomi_base/gen/preferences_ui.py +++ b/yomi_base/gen/preferences_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'ui/preferences.ui' # -# Created: Fri Nov 15 20:29:12 2013 +# Created: Sat Nov 16 11:47:57 2013 # by: PyQt4 UI code generator 4.10 # # WARNING! All changes made in this file will be lost! @@ -192,7 +192,7 @@ class Ui_DialogPreferences(object): self.buttonColorBg.setText(_translate("DialogPreferences", "Background...", None)) self.textSample.setPlainText(_translate("DialogPreferences", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. ", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAppearance), _translate("DialogPreferences", "Appearance", None)) - self.label.setText(_translate("DialogPreferences", "Profile", None)) + self.label.setText(_translate("DialogPreferences", "Displayed profile", None)) self.radioButtonVocab.setText(_translate("DialogPreferences", "Vocabulary", None)) self.radioButtonKanji.setText(_translate("DialogPreferences", "Kanji", None)) self.label_13.setText(_translate("DialogPreferences", "Deck", None)) diff --git a/yomi_base/gen/reader_ui.py b/yomi_base/gen/reader_ui.py index 4d968e0..80143fa 100644 --- a/yomi_base/gen/reader_ui.py +++ b/yomi_base/gen/reader_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'ui/reader.ui' # -# Created: Fri Nov 15 20:29:13 2013 +# Created: Sat Nov 16 11:47:57 2013 # by: PyQt4 UI code generator 4.10 # # WARNING! All changes made in this file will be lost! diff --git a/yomi_base/gen/resources_rc.py b/yomi_base/gen/resources_rc.py index 5692c47..13f3cea 100644 --- a/yomi_base/gen/resources_rc.py +++ b/yomi_base/gen/resources_rc.py @@ -2,7 +2,7 @@ # Resource object code # -# Created: Fri Nov 15 20:29:13 2013 +# Created: Sat Nov 16 11:47:57 2013 # by: The Resource Compiler for PyQt (Qt v4.8.4) # # WARNING! All changes made in this file will be lost! diff --git a/yomi_base/reader_util.py b/yomi_base/reader_util.py index 5cbfcb0..21910bf 100644 --- a/yomi_base/reader_util.py +++ b/yomi_base/reader_util.py @@ -151,6 +151,13 @@ def buildDefFooter(): return '' +def buildEmpty(): + return u""" +

No definitions to display.

+

Mouse over text with the middle mouse button or shift key pressed to search.

+

You can also also input terms in the search box below.""" + + def buildVocabDef(definition, index, query): reading = unicode() if definition['reading']: @@ -185,10 +192,7 @@ def buildVocabDefs(definitions, query): for i, definition in enumerate(definitions): html += buildVocabDef(definition, i, query) else: - html += """ -

No definitions to display.

-

Mouse over text with the middle mouse button or shift key pressed to search.

-

You can also also input terms in the search box below, using the "*" and "?" wildcards where needed.

""" + html += buildEmpty() return html + buildDefFooter() @@ -216,9 +220,6 @@ def buildKanjiDefs(definitions, query): for i, definition in enumerate(definitions): html += buildKanjiDef(definition, i, query) else: - html += """ -

No definitions to display.

-

Mouse over text with the middle mouse button or shift key pressed to search.

-

You can also also input terms in the search box below.""" + html += buildEmpty() return html + buildDefFooter()