From 054f3a41427b04b37db3775faf243f64255f2237 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Sat, 15 Jan 2011 00:55:38 +0000 Subject: [PATCH] Remove duplicated translate --- openlp/core/ui/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openlp/core/ui/__init__.py b/openlp/core/ui/__init__.py index 931773b8f..9d7de0726 100644 --- a/openlp/core/ui/__init__.py +++ b/openlp/core/ui/__init__.py @@ -63,13 +63,12 @@ def criticalErrorMessageBox(parent, message, question=False): ``message`` The message to display to the user. """ + error = translate('OpenLP.Ui', 'Error') if question: - return QtGui.QMessageBox.critical(parent, - translate('OpenLP.Ui', 'Error'), - message, QtGui.QMessageBox.StandardButtons( + return QtGui.QMessageBox.critical(parent, error, message, + QtGui.QMessageBox.StandardButtons( QtGui.QMessageBox.Yes | QtGui.QMessageBox.No)) - return QtGui.QMessageBox.critical(parent, translate('OpenLP.Ui', 'Error'), - message) + return QtGui.QMessageBox.critical(parent, error, message) from themeform import ThemeForm from filerenameform import FileRenameForm