fix some Q_() call
This commit is contained in:
parent
4ffc1cf8b6
commit
9bafd7698b
|
@ -43,6 +43,7 @@ from gajim.chat_control import ChatControl
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
from gajim.gtkgui_helpers import get_action
|
from gajim.gtkgui_helpers import get_action
|
||||||
|
from gajim.common.i18n import Q_
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
|
||||||
|
@ -527,7 +528,7 @@ class MessageWindow(object):
|
||||||
if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE:
|
if window_mode == MessageWindowMgr.ONE_MSG_WINDOW_PERTYPE:
|
||||||
# Show the plural form since number of tabs > 1
|
# Show the plural form since number of tabs > 1
|
||||||
if self.type_ == 'chat':
|
if self.type_ == 'chat':
|
||||||
label = _('?Noun:Chats')
|
label = Q_('?Noun:Chats')
|
||||||
elif self.type_ == 'gc':
|
elif self.type_ == 'gc':
|
||||||
label = _('Groupchats')
|
label = _('Groupchats')
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -776,13 +776,13 @@ class FileTransfersTooltip(BaseTooltip):
|
||||||
file_name = file_props.name
|
file_name = file_props.name
|
||||||
properties.append((_('Name: '), GLib.markup_escape_text(file_name)))
|
properties.append((_('Name: '), GLib.markup_escape_text(file_name)))
|
||||||
if file_props.type_ == 'r':
|
if file_props.type_ == 'r':
|
||||||
type_ = _('?Noun:Download')
|
type_ = Q_('?Noun:Download')
|
||||||
actor = _('Sender: ')
|
actor = _('Sender: ')
|
||||||
sender = file_props.sender.split('/')[0]
|
sender = file_props.sender.split('/')[0]
|
||||||
name = app.contacts.get_first_contact_from_jid(
|
name = app.contacts.get_first_contact_from_jid(
|
||||||
file_props.tt_account, sender).get_shown_name()
|
file_props.tt_account, sender).get_shown_name()
|
||||||
else:
|
else:
|
||||||
type_ = _('?Noun:Upload')
|
type_ = Q_('?Noun:Upload')
|
||||||
actor = _('Recipient: ')
|
actor = _('Recipient: ')
|
||||||
receiver = file_props.receiver
|
receiver = file_props.receiver
|
||||||
if hasattr(receiver, 'name'):
|
if hasattr(receiver, 'name'):
|
||||||
|
@ -808,7 +808,7 @@ class FileTransfersTooltip(BaseTooltip):
|
||||||
status = _('Completed')
|
status = _('Completed')
|
||||||
else:
|
else:
|
||||||
if file_props.paused == True:
|
if file_props.paused == True:
|
||||||
status = _('?transfer status:Paused')
|
status = Q_('?transfer status:Paused')
|
||||||
elif file_props.stalled == True:
|
elif file_props.stalled == True:
|
||||||
#stalled is not paused. it is like 'frozen' it stopped alone
|
#stalled is not paused. it is like 'frozen' it stopped alone
|
||||||
status = _('Stalled')
|
status = _('Stalled')
|
||||||
|
|
Loading…
Reference in New Issue