This commit is contained in:
Jonathan Corwin 2011-05-15 21:53:25 +01:00
parent f701eb9417
commit 274c4ee87a
4 changed files with 9 additions and 8 deletions

View File

@ -605,4 +605,4 @@ class MediaManagerItem(QtGui.QWidget):
Performs a plugin specific search for items containing ``string`` Performs a plugin specific search for items containing ``string``
""" """
raise NotImplementedError( raise NotImplementedError(
u'Plugin.about needs to be defined by the plugin') u'Plugin.search needs to be defined by the plugin')

View File

@ -364,8 +364,8 @@ class BibleDB(QtCore.QObject, Manager):
critical_error_message_box( critical_error_message_box(
translate('BiblesPlugin', 'No Book Found'), translate('BiblesPlugin', 'No Book Found'),
translate('BiblesPlugin', 'No matching book ' translate('BiblesPlugin', 'No matching book '
'could be found in this Bible. Check that you have ' 'could be found in this Bible. Check that you '
'spelled the name of the book correctly.')) 'have spelled the name of the book correctly.'))
return verse_list return verse_list
def verse_search(self, text): def verse_search(self, text):

View File

@ -270,9 +270,9 @@ class BibleManager(object):
u'title': translate('BiblesPlugin.BibleManager', u'title': translate('BiblesPlugin.BibleManager',
'Scripture Reference Error'), 'Scripture Reference Error'),
u'message': translate('BiblesPlugin.BibleManager', u'message': translate('BiblesPlugin.BibleManager',
'Your scripture reference is either not supported by OpenLP ' 'Your scripture reference is either not supported by '
'or is invalid. Please make sure your reference conforms to ' 'OpenLP or is invalid. Please make sure your reference '
'one of the following patterns:\n\n' 'conforms to one of the following patterns:\n\n'
'Book Chapter\n' 'Book Chapter\n'
'Book Chapter-Chapter\n' 'Book Chapter-Chapter\n'
'Book Chapter:Verse-Verse\n' 'Book Chapter:Verse-Verse\n'

View File

@ -651,7 +651,8 @@ class BibleMediaItem(MediaManagerItem):
Displays the search results in the media manager. All data needed for Displays the search results in the media manager. All data needed for
further action is saved for/in each row. further action is saved for/in each row.
""" """
items = self.buildDisplayResults(bible, second_bible, self.search_results) items = self.buildDisplayResults(bible, second_bible,
self.search_results)
for bible_verse in items: for bible_verse in items:
self.listView.addItem(bible_verse) self.listView.addItem(bible_verse)
self.listView.selectAll() self.listView.selectAll()