forked from openlp/openlp
Pep8 fixes
To do: Test(s)
This commit is contained in:
parent
d61ded487e
commit
a78565568f
@ -162,14 +162,11 @@ class UiStrings(object):
|
||||
's16%(range)s17%(list)s5%(verse)s7%(range)s9<br>Book Chapter%'
|
||||
'(verse)sVerse%(range)sChapter%(verse)sVerse | John 3%(verse)'
|
||||
's16%(range)s4%(verse)s2<br><br> Book names may be shortened '
|
||||
'from full names, for an example: Joh 3 = John 3'
|
||||
, 'Please pay attention to the appended "s" of the wildcards and refrain '
|
||||
'from full names, for an example: Joh 3 = John 3',
|
||||
'Please pay attention to the appended "s" of the wildcards and refrain '
|
||||
'from translating the words inside the names in the brackets.')
|
||||
self.BibleShortSearch = translate('OpenLP.Ui', '<strong>The search you have entered is empty or shorter '
|
||||
'than 3 characters long.<br>Please try again with '
|
||||
'a longer search.</strong><br><br>You can separate different '
|
||||
'keywords by a space to search for all of your keywords and you '
|
||||
'can separate them by a comma to search for one of them.')
|
||||
|
||||
|
||||
|
||||
|
@ -427,7 +427,7 @@ class BibleMediaItem(MediaManagerItem):
|
||||
def update_auto_completer(self):
|
||||
"""
|
||||
This updates the bible book completion list for the search field. The completion depends on the bible. It is
|
||||
only updated when we are doing a reference search, otherwise the auto completion list is removed.
|
||||
only updated when we are doing reference or combined search, in text search the completion list is removed.
|
||||
"""
|
||||
log.debug('update_auto_completer')
|
||||
# Save the current search type to the configuration.
|
||||
@ -757,13 +757,22 @@ class BibleMediaItem(MediaManagerItem):
|
||||
'verse': get_reference_separator('sep_v_display'),
|
||||
'range': get_reference_separator('sep_r_display'),
|
||||
'list': get_reference_separator('sep_l_display')}
|
||||
self.main_window.information_message(
|
||||
translate('BiblesPlugin.BibleManager', 'Nothing found'),
|
||||
translate('BiblesPlugin.BibleManager', '<strong>OpenLP couldn’t find '
|
||||
'anything with your search.</strong><br><br>'
|
||||
'If you tried to search with Scripture Reference, please make<br>sure that '
|
||||
'your reference follows one of these patterns:%s'
|
||||
% UiStrings().BibleScriptureError % reference_separators))
|
||||
self.main_window.information_message(translate('BiblesPlugin.BibleManager', 'Nothing found'),
|
||||
translate('BiblesPlugin.BibleManager', '<strong>OpenLP '
|
||||
'couldn’t find '
|
||||
'anything with your'
|
||||
' search.</strong>'
|
||||
'<br><br>'
|
||||
'If you tried to '
|
||||
'search with '
|
||||
'Scripture '
|
||||
'Reference, please '
|
||||
'make<br>sure that '
|
||||
'your reference '
|
||||
'follows one of '
|
||||
'these patterns:%s'
|
||||
% UiStrings().BibleScriptureError %
|
||||
reference_separators))
|
||||
# Finalizing the search
|
||||
if not self.quickLockButton.isChecked():
|
||||
self.list_view.clear()
|
||||
|
Loading…
Reference in New Issue
Block a user