Use unicode instead of str for MessagingMenu
This commit is contained in:
parent
364642404a
commit
9be36f2d78
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user