From b2ed6bb84c693aeea8d73998a5343bcd7c9de787 Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Sun, 17 Apr 2016 16:47:44 -0700 Subject: [PATCH] Fix split in string formatting --- openlp/core/ui/projector/manager.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/openlp/core/ui/projector/manager.py b/openlp/core/ui/projector/manager.py index 7c0166f95..f33165e12 100644 --- a/openlp/core/ui/projector/manager.py +++ b/openlp/core/ui/projector/manager.py @@ -926,9 +926,8 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QWidget, Ui_ProjectorManager, :param name: Name from QListWidgetItem """ - # Build the title separately so we can make it easier for translators - title = '"{name}" '.format(name=name) - title += translate('OpenLP.ProjectorManager', 'Authentication Error') + title = '"{name} {message}" '.format(name=name, + message=translate('OpenLP.ProjectorManager', 'Authentication Error')) QtWidgets.QMessageBox.warning(self, title, '
There was an authentication error while trying to connect.' '

Please verify your PIN setting ' @@ -942,9 +941,8 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QWidget, Ui_ProjectorManager, :param name: Name from QListWidgetItem """ - # Build the title separately so we can make it easier for translators - title = '"{name}" '.format(name=name) - title += translate('OpenLP.ProjectorManager', 'No Authentication Error') + title = '"{name} {message}" '.format(name=name, + message-translate('OpenLP.ProjectorManager', 'No Authentication Error')) QtWidgets.QMessageBox.warning(self, title, '
PIN is set and projector does not require authentication.' '

Please verify your PIN setting '