forked from openlp/openlp
Merge fixes 3
This commit is contained in:
parent
3b9adbb1db
commit
f1f6c6bd3e
@ -64,12 +64,8 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
|
|||||||
self.themesText = translate('OpenLP.FirstTimeWizard', 'Themes')
|
self.themesText = translate('OpenLP.FirstTimeWizard', 'Themes')
|
||||||
self.startUpdates = translate('OpenLP.FirstTimeWizard',
|
self.startUpdates = translate('OpenLP.FirstTimeWizard',
|
||||||
'Starting Updates')
|
'Starting Updates')
|
||||||
self.downloadSongs = unicode(translate('OpenLP.FirstTimeWizard',
|
self.downloading = unicode(translate('OpenLP.FirstTimeWizard',
|
||||||
'Downloading songs: %s'))
|
'Downloading %s'))
|
||||||
self.downloadBible = unicode(translate('OpenLP.FirstTimeWizard',
|
|
||||||
'Downloading bible: %s'))
|
|
||||||
self.downloadTheme = unicode(translate('OpenLP.FirstTimeWizard',
|
|
||||||
'Downloading theme: %s'))
|
|
||||||
|
|
||||||
def exec_(self, edit=False):
|
def exec_(self, edit=False):
|
||||||
"""
|
"""
|
||||||
@ -164,7 +160,7 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
|
|||||||
if unicode(type.text(0)) == self.songsText:
|
if unicode(type.text(0)) == self.songsText:
|
||||||
songs = unicode(listIterator.value().data(0,
|
songs = unicode(listIterator.value().data(0,
|
||||||
QtCore.Qt.UserRole).toString())
|
QtCore.Qt.UserRole).toString())
|
||||||
message = self.downloadSongs % item
|
message = self.downloading % item
|
||||||
self._updateMessage(message)
|
self._updateMessage(message)
|
||||||
# Song database is a fixed file name
|
# Song database is a fixed file name
|
||||||
urllib.urlretrieve(u'%s%s' % (self.web, songs),
|
urllib.urlretrieve(u'%s%s' % (self.web, songs),
|
||||||
@ -173,7 +169,7 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
|
|||||||
if unicode(type.text(0)) == self.biblesText:
|
if unicode(type.text(0)) == self.biblesText:
|
||||||
bible = unicode(listIterator.value().data(0,
|
bible = unicode(listIterator.value().data(0,
|
||||||
QtCore.Qt.UserRole).toString())
|
QtCore.Qt.UserRole).toString())
|
||||||
message = self.downloadBible % item
|
message = self.downloading % item
|
||||||
self._updateMessage(message)
|
self._updateMessage(message)
|
||||||
urllib.urlretrieve(u'%s%s' % (self.web, bible),
|
urllib.urlretrieve(u'%s%s' % (self.web, bible),
|
||||||
os.path.join(bibleDestination, bible))
|
os.path.join(bibleDestination, bible))
|
||||||
@ -181,7 +177,7 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
|
|||||||
if unicode(type.text(0)) == self.themesText:
|
if unicode(type.text(0)) == self.themesText:
|
||||||
theme = unicode(listIterator.value().data(0,
|
theme = unicode(listIterator.value().data(0,
|
||||||
QtCore.Qt.UserRole).toString())
|
QtCore.Qt.UserRole).toString())
|
||||||
message = self.downloadTheme % item
|
message = self.downloading % item
|
||||||
self._updateMessage(message)
|
self._updateMessage(message)
|
||||||
urllib.urlretrieve(u'%s%s' % (self.web, theme),
|
urllib.urlretrieve(u'%s%s' % (self.web, theme),
|
||||||
os.path.join(themeDestination, theme))
|
os.path.join(themeDestination, theme))
|
||||||
|
Loading…
Reference in New Issue
Block a user