diff --git a/openlp/core/ui/amendthemeform.py b/openlp/core/ui/amendthemeform.py index 3a30a0d18..b95a88ca2 100644 --- a/openlp/core/ui/amendthemeform.py +++ b/openlp/core/ui/amendthemeform.py @@ -674,10 +674,10 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): self.theme.font_main_italics)# italic mainFont.setPixelSize(int(self.theme.font_main_proportion)) metrics = QtGui.QFontMetrics(mainFont) - page_length = (int(self.FontMainHeightSpinBox.value()) / metrics.height() - 2 ) - 1 - log.debug(u'Page Length area height %s , metrics %s , lines %s' % - (int(self.FontMainHeightSpinBox.value()), metrics.height(), page_length )) - self.FontMainLinesPageLabel.setText( - self.trUtf8((u'Slide Height is %s rows') % page_length)) + page_length = (int(self.FontMainHeightSpinBox.value()) / metrics.height() - 2) - 1 + log.debug(u'Page Length area height %s, metrics %s, lines %s' % + (int(self.FontMainHeightSpinBox.value()), metrics.height(), page_length)) + page_length_text = unicode(self.trUtf8(u'Slide Height is %s rows')) + self.FontMainLinesPageLabel.setText(page_length_text % page_length) frame = self.thememanager.generateImage(theme) self.ThemePreview.setPixmap(QtGui.QPixmap.fromImage(frame)) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 2f58ee3c1..f78047712 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -528,10 +528,11 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): applicationVersion = self.generalConfig.get_config(u'Application version', u'1.9.0-595') version = check_latest_version(self.generalConfig, applicationVersion) if applicationVersion != version: + version_text = unicode(self.trUtf8(u'OpenLP version %s has been updated ' + u'to version %s')) QtGui.QMessageBox.question(None, - self.trUtf8(u'OpenLP version Updated'), - self.trUtf8(u'OpenLP version %s has been updated to version %s') - % (applicationVersion, version), + self.trUtf8(u'OpenLP Version Updated'), + version_text % (applicationVersion, version), QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok), QtGui.QMessageBox.Ok) self.generalConfig.set_config(u'Application version', version)