Use unicode instead of str for MessagingMenu #1073

Merged
g1itch merged 1 commits from notification into v0.6 2017-10-19 17:41:27 +02:00

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import gi import gi
gi.require_version('MessagingMenu', '1.0') gi.require_version('MessagingMenu', '1.0') # noqa:E402
from gi.repository import MessagingMenu from gi.repository import MessagingMenu
from pybitmessage.bitmessageqt.utils import str_broadcast_subscribers from pybitmessage.bitmessageqt.utils import str_broadcast_subscribers
@ -19,9 +19,9 @@ class IndicatorLibmessaging(object):
return return
self._menu = { self._menu = {
'send': str(_translate('MainWindow', 'Send')), 'send': unicode(_translate('MainWindow', 'Send')),
'messages': str(_translate('MainWindow', 'Messages')), 'messages': unicode(_translate('MainWindow', 'Messages')),
'subscriptions': str(_translate('MainWindow', 'Subscriptions')) 'subscriptions': unicode(_translate('MainWindow', 'Subscriptions'))
} }
self.new_message_item = self.new_broadcast_item = None self.new_message_item = self.new_broadcast_item = None