diff --git a/openlp/core/lib/ui.py b/openlp/core/lib/ui.py index 63fc04153..038be08b9 100644 --- a/openlp/core/lib/ui.py +++ b/openlp/core/lib/ui.py @@ -115,6 +115,8 @@ class UiStrings(object): 'The abbreviated unit for seconds') self.SaveAndPreview = translate('OpenLP.Ui', 'Save && Preview') self.Search = translate('OpenLP.Ui', 'Search') + self.SearchThemes = translate( + 'OpenLP.Ui', 'Search Themes...', 'Search bar place holder text ') self.SelectDelete = translate('OpenLP.Ui', 'You must select an item ' 'to delete.') self.SelectEdit = translate('OpenLP.Ui', 'You must select an item to ' @@ -374,7 +376,7 @@ def create_widget_action(parent, name=u'', **kwargs): The shortcut context defaults to ``QtCore.Qt.WidgetShortcut`` and the action is added to the parents action list. """ - kwargs.setdefault(u'context', QtCore.Qt.WidgetShortcut) + kwargs.setdefault(u'context', QtCore.Qt.WidgetShortcut) action = create_action(parent, name, **kwargs) parent.addAction(action) return action diff --git a/openlp/plugins/custom/lib/mediaitem.py b/openlp/plugins/custom/lib/mediaitem.py index f479fc363..688e8bf82 100644 --- a/openlp/plugins/custom/lib/mediaitem.py +++ b/openlp/plugins/custom/lib/mediaitem.py @@ -95,7 +95,7 @@ class CustomMediaItem(MediaManagerItem): translate('SongsPlugin.MediaItem', 'Titles'), translate('SongsPlugin.MediaItem', 'Search Titles...')), (CustomSearch.Themes, u':/slides/slide_theme.png', - UiStrings().Themes, translate('SongsPlugin.MediaItem', 'Search')) + UiStrings().Themes, UiStrings().SearchThemes) ]) self.loadList(self.manager.get_all_objects( CustomSlide, order_by_ref=CustomSlide.title)) diff --git a/openlp/plugins/songs/lib/mediaitem.py b/openlp/plugins/songs/lib/mediaitem.py index 7d995500d..70d2e22d6 100644 --- a/openlp/plugins/songs/lib/mediaitem.py +++ b/openlp/plugins/songs/lib/mediaitem.py @@ -166,8 +166,7 @@ class SongMediaItem(MediaManagerItem): SongStrings.SongBooks, translate('SongsPlugin.MediaItem', 'Search Song Books...')), (SongSearch.Themes, u':/slides/slide_theme.png', - UiStrings().Themes, - translate('SongsPlugin.MediaItem', 'Search Themes...')) + UiStrings().Themes, UiStrings().SearchThemes) ]) self.searchTextEdit.setCurrentSearchType(QtCore.QSettings().value( u'%s/last search type' % self.settingsSection,