From 9d73d37b9427d9125090c6e828df9274940de9cc Mon Sep 17 00:00:00 2001 From: Samuel Findlay Date: Mon, 9 Jul 2012 15:49:10 +1000 Subject: [PATCH] Song Import Wizard: disabledLabelTextfor default and MediaShout --- openlp/plugins/songs/lib/importer.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/songs/lib/importer.py b/openlp/plugins/songs/lib/importer.py index 0c3a0f07f..660cf3f93 100644 --- a/openlp/plugins/songs/lib/importer.py +++ b/openlp/plugins/songs/lib/importer.py @@ -169,7 +169,8 @@ class SongFormat(object): u'selectMode': SongFormatSelect.MultipleFiles, u'filter': u'', u'comboBoxText': None, - u'disabledLabelText': u'', + u'disabledLabelText': translate('SongsPlugin.ImportWizardForm', + 'This importer has been disabled.'), u'getFilesTitle': None, u'invalidSourceMsg': None, u'descriptionText': None @@ -257,7 +258,11 @@ class SongFormat(object): u'canDisable': True, u'selectMode': SongFormatSelect.SingleFile, u'filter': u'%s (*.mdb)' % translate('SongsPlugin.ImportWizardForm', - 'MediaShout Database') + 'MediaShout Database'), + u'disabledLabelText': translate('SongsPlugin.ImportWizardForm', + 'The MediaShout importer has been disabled because the pyodbc ' + 'module is not available. This importer is only available on ' + 'Windows.') }, OpenSong: { u'class': OpenSongImport,