Commit 7b8eec95 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

Fix some spaces in strings

parent 65362358
......@@ -1078,13 +1078,14 @@ def get_notification_icon_tooltip_dict():
messages[jid], messages[jid], messages[jid])
contact = gajim.contacts.get_first_contact_from_jid(
account['name'], jid)
text += ' '
if jid in gajim.gc_connected[account['name']]:
text += _(' from room %s') % (jid)
text += _('from room %s') % (jid)
elif contact:
name = contact.get_shown_name()
text += _(' from user %s') % (name)
text += _('from user %s') % (name)
else:
text += _(' from %s') % (jid)
text += _('from %s') % (jid)
account['event_lines'].append(text)
# Display unseen events numbers, if any
......@@ -1099,7 +1100,7 @@ def get_notification_icon_tooltip_dict():
for jid in non_messages.keys():
text = ngettext('%d event pending', '%d events pending',
non_messages[jid], non_messages[jid], non_messages[jid])
text += _(' from user %s') % (jid)
text += ' ' + _('from user %s') % (jid)
account[account]['event_lines'].append(text)
return accounts
......
......@@ -37,7 +37,7 @@ class DeviceManager(object):
element.set_state(Gst.State.READY)
devices = element.get_properties('device')
if devices:
self.devices[text % _(' Default device')] = pipe % name
self.devices[text % _('Default device')] = pipe % name
for device in devices:
element.set_state(Gst.State.NULL)
element.set_property('device', device)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment