From cec2233043b0f3e540af4c16b28feb91a9c566b0 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 17 Jun 2016 19:58:16 +0200 Subject: [PATCH] Fix about dialog - Last commit broke the about dialog, this fixes it again. --- src/bitmessageqt/about.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bitmessageqt/about.py b/src/bitmessageqt/about.py index d79810ce..b778510e 100644 --- a/src/bitmessageqt/about.py +++ b/src/bitmessageqt/about.py @@ -23,10 +23,12 @@ except AttributeError: def _translate(context, text, disambig): return QtGui.QApplication.translate(context, text, disambig) -def __trUtf8(context, text): - return _translate(context, text, None) class Ui_aboutDialog(object): + @staticmethod + def __trUtf8(context, text): + return _translate(context, text, None) + def setupUi(self, aboutDialog): aboutDialog.setObjectName(_fromUtf8("aboutDialog")) aboutDialog.resize(360, 315) @@ -69,7 +71,7 @@ class Ui_aboutDialog(object): aboutDialog.setWindowTitle(_translate("aboutDialog", "About", None)) self.label.setText(_translate("aboutDialog", "PyBitmessage", None)) self.labelVersion.setText(_translate("aboutDialog", "version ?", None)) - self.label_2.setText(__trUtf8("aboutDialog", "

Copyright © 2012-2016 Jonathan Warren
Copyright © 2013-2016 The Bitmessage Developers

")) + self.label_2.setText(Ui_aboutDialog.__trUtf8("aboutDialog", "

Copyright © 2012-2016 Jonathan Warren
Copyright © 2013-2016 The Bitmessage Developers

")) self.label_3.setText(_translate("aboutDialog", "

Distributed under the MIT/X11 software license; see http://www.opensource.org/licenses/mit-license.php

", None)) self.label_5.setText(_translate("aboutDialog", "This is Beta software.", None))