Remove duplicated translate

This commit is contained in:
Jon Tibble 2011-01-15 00:55:38 +00:00
parent ee6412e2a0
commit 054f3a4142

View File

@ -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