Use unicode instead of str for MessagingMenu

This commit is contained in:
Dmitri Bogomolov 2017-10-17 01:30:01 +03:00
parent 364642404a
commit 9be36f2d78
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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