forked from openlp/openlp
OpenLP 2.0 -> OpenLP 2
This commit is contained in:
parent
f36a9c29dc
commit
fce9a1e1f2
@ -277,7 +277,7 @@ class OpenLPWizard(QtGui.QWizard, RegistryProperties):
|
||||
:param filters: The file extension filters. It should contain the file description
|
||||
as well as the file extension. For example::
|
||||
|
||||
'OpenLP 2.0 Databases (*.sqlite)'
|
||||
'OpenLP 2 Databases (*.sqlite)'
|
||||
"""
|
||||
if filters:
|
||||
filters += ';;'
|
||||
|
@ -310,9 +310,9 @@ class HttpRouter(RegistryProperties):
|
||||
Translate various strings in the mobile app.
|
||||
"""
|
||||
self.template_vars = {
|
||||
'app_title': translate('RemotePlugin.Mobile', 'OpenLP 2.2 Remote'),
|
||||
'stage_title': translate('RemotePlugin.Mobile', 'OpenLP 2.2 Stage View'),
|
||||
'live_title': translate('RemotePlugin.Mobile', 'OpenLP 2.2 Live View'),
|
||||
'app_title': translate('RemotePlugin.Mobile', '%s Remote' % UiStrings().OLPV2x),
|
||||
'stage_title': translate('RemotePlugin.Mobile', '%s Stage View' % UiStrings().OLPV2x),
|
||||
'live_title': translate('RemotePlugin.Mobile', '%s Live View' % UiStrings().OLPV2x),
|
||||
'service_manager': translate('RemotePlugin.Mobile', 'Service Manager'),
|
||||
'slide_controller': translate('RemotePlugin.Mobile', 'Slide Controller'),
|
||||
'alerts': translate('RemotePlugin.Mobile', 'Alerts'),
|
||||
|
@ -187,14 +187,14 @@ class SongFormat(object):
|
||||
'name': 'OpenLyrics',
|
||||
'prefix': 'openLyrics',
|
||||
'filter': '%s (*.xml)' % translate('SongsPlugin.ImportWizardForm', 'OpenLyrics Files'),
|
||||
'comboBoxText': translate('SongsPlugin.ImportWizardForm', 'OpenLyrics or OpenLP 2.0 Exported Song')
|
||||
'comboBoxText': translate('SongsPlugin.ImportWizardForm', 'OpenLyrics or OpenLP 2 Exported Song')
|
||||
},
|
||||
OpenLP2: {
|
||||
'class': OpenLPSongImport,
|
||||
'name': UiStrings().OLPV2,
|
||||
'prefix': 'openLP2',
|
||||
'selectMode': SongFormatSelect.SingleFile,
|
||||
'filter': '%s (*.sqlite)' % (translate('SongsPlugin.ImportWizardForm', 'OpenLP 2.0 Databases'))
|
||||
'filter': '%s (*.sqlite)' % (translate('SongsPlugin.ImportWizardForm', 'OpenLP 2 Databases'))
|
||||
},
|
||||
Generic: {
|
||||
'name': translate('SongsPlugin.ImportWizardForm', 'Generic Document/Presentation'),
|
||||
|
@ -94,7 +94,7 @@ class OpenLPSongImport(SongImport):
|
||||
# Check the file type
|
||||
if not self.import_source.endswith('.sqlite'):
|
||||
self.log_error(self.import_source, translate('SongsPlugin.OpenLPSongImport',
|
||||
'Not a valid OpenLP 2.0 song database.'))
|
||||
'Not a valid OpenLP 2 song database.'))
|
||||
return
|
||||
self.import_source = 'sqlite:///%s' % self.import_source
|
||||
# Load the db file
|
||||
|
Loading…
Reference in New Issue
Block a user