Fix some spaces in strings

This commit is contained in:
Yann Leboulanger 2017-01-04 13:14:10 +01:00
parent 65362358a9
commit 7b8eec955c
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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)