From 9be36f2d78f6ae46562a393c2fd9097a5bb08f3a Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Tue, 17 Oct 2017 01:30:01 +0300 Subject: [PATCH] Use unicode instead of str for MessagingMenu --- src/plugins/indicator_libmessaging.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/indicator_libmessaging.py b/src/plugins/indicator_libmessaging.py index 96ab1516..36178663 100644 --- a/src/plugins/indicator_libmessaging.py +++ b/src/plugins/indicator_libmessaging.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import gi -gi.require_version('MessagingMenu', '1.0') +gi.require_version('MessagingMenu', '1.0') # noqa:E402 from gi.repository import MessagingMenu from pybitmessage.bitmessageqt.utils import str_broadcast_subscribers @@ -19,9 +19,9 @@ class IndicatorLibmessaging(object): return self._menu = { - 'send': str(_translate('MainWindow', 'Send')), - 'messages': str(_translate('MainWindow', 'Messages')), - 'subscriptions': str(_translate('MainWindow', 'Subscriptions')) + 'send': unicode(_translate('MainWindow', 'Send')), + 'messages': unicode(_translate('MainWindow', 'Messages')), + 'subscriptions': unicode(_translate('MainWindow', 'Subscriptions')) } self.new_message_item = self.new_broadcast_item = None