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`` ``message``
The message to display to the user. The message to display to the user.
""" """
error = translate('OpenLP.Ui', 'Error')
if question: if question:
return QtGui.QMessageBox.critical(parent, return QtGui.QMessageBox.critical(parent, error, message,
translate('OpenLP.Ui', 'Error'), QtGui.QMessageBox.StandardButtons(
message, QtGui.QMessageBox.StandardButtons(
QtGui.QMessageBox.Yes | QtGui.QMessageBox.No)) QtGui.QMessageBox.Yes | QtGui.QMessageBox.No))
return QtGui.QMessageBox.critical(parent, translate('OpenLP.Ui', 'Error'), return QtGui.QMessageBox.critical(parent, error, message)
message)
from themeform import ThemeForm from themeform import ThemeForm
from filerenameform import FileRenameForm from filerenameform import FileRenameForm