From d9ca8d1e5e11f58d8895c904e8e238e6939ffd03 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 16 Jun 2016 14:06:36 +0200 Subject: [PATCH] Fix UTF8 character in translation source - "About" dialog did not correctly interpret source UTF-8 characters --- src/bitmessageqt/about.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/about.py b/src/bitmessageqt/about.py index 7ddec7a0..d79810ce 100644 --- a/src/bitmessageqt/about.py +++ b/src/bitmessageqt/about.py @@ -23,6 +23,9 @@ 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): def setupUi(self, aboutDialog): aboutDialog.setObjectName(_fromUtf8("aboutDialog")) @@ -66,7 +69,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(_translate("aboutDialog", "

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

", None)) + self.label_2.setText(__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))