forked from openlp/openlp
Remove duplicated translate
This commit is contained in:
parent
ee6412e2a0
commit
054f3a4142
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user