Skip to content
Snippets Groups Projects
Commit 9bafd769 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix some Q_() call

parent 4ffc1cf8
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ from gajim.chat_control import ChatControl
from gajim.common import app
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:
# Show the plural form since number of tabs > 1
if self.type_ == 'chat':
label = _('?Noun:Chats')
label = Q_('?Noun:Chats')
elif self.type_ == 'gc':
label = _('Groupchats')
else:
......
......@@ -776,13 +776,13 @@ class FileTransfersTooltip(BaseTooltip):
file_name = file_props.name
properties.append((_('Name: '), GLib.markup_escape_text(file_name)))
if file_props.type_ == 'r':
type_ = _('?Noun:Download')
type_ = Q_('?Noun:Download')
actor = _('Sender: ')
sender = file_props.sender.split('/')[0]
name = app.contacts.get_first_contact_from_jid(
file_props.tt_account, sender).get_shown_name()
else:
type_ = _('?Noun:Upload')
type_ = Q_('?Noun:Upload')
actor = _('Recipient: ')
receiver = file_props.receiver
if hasattr(receiver, 'name'):
......@@ -808,7 +808,7 @@ class FileTransfersTooltip(BaseTooltip):
status = _('Completed')
else:
if file_props.paused == True:
status = _('?transfer status:Paused')
status = Q_('?transfer status:Paused')
elif file_props.stalled == True:
#stalled is not paused. it is like 'frozen' it stopped alone
status = _('Stalled')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment