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