Fix some spaces in strings
This commit is contained in:
parent
65362358a9
commit
7b8eec955c
|
@ -1078,13 +1078,14 @@ def get_notification_icon_tooltip_dict():
|
||||||
messages[jid], messages[jid], messages[jid])
|
messages[jid], messages[jid], messages[jid])
|
||||||
contact = gajim.contacts.get_first_contact_from_jid(
|
contact = gajim.contacts.get_first_contact_from_jid(
|
||||||
account['name'], jid)
|
account['name'], jid)
|
||||||
|
text += ' '
|
||||||
if jid in gajim.gc_connected[account['name']]:
|
if jid in gajim.gc_connected[account['name']]:
|
||||||
text += _(' from room %s') % (jid)
|
text += _('from room %s') % (jid)
|
||||||
elif contact:
|
elif contact:
|
||||||
name = contact.get_shown_name()
|
name = contact.get_shown_name()
|
||||||
text += _(' from user %s') % (name)
|
text += _('from user %s') % (name)
|
||||||
else:
|
else:
|
||||||
text += _(' from %s') % (jid)
|
text += _('from %s') % (jid)
|
||||||
account['event_lines'].append(text)
|
account['event_lines'].append(text)
|
||||||
|
|
||||||
# Display unseen events numbers, if any
|
# Display unseen events numbers, if any
|
||||||
|
@ -1099,7 +1100,7 @@ def get_notification_icon_tooltip_dict():
|
||||||
for jid in non_messages.keys():
|
for jid in non_messages.keys():
|
||||||
text = ngettext('%d event pending', '%d events pending',
|
text = ngettext('%d event pending', '%d events pending',
|
||||||
non_messages[jid], non_messages[jid], non_messages[jid])
|
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)
|
account[account]['event_lines'].append(text)
|
||||||
|
|
||||||
return accounts
|
return accounts
|
||||||
|
|
|
@ -37,7 +37,7 @@ class DeviceManager(object):
|
||||||
element.set_state(Gst.State.READY)
|
element.set_state(Gst.State.READY)
|
||||||
devices = element.get_properties('device')
|
devices = element.get_properties('device')
|
||||||
if devices:
|
if devices:
|
||||||
self.devices[text % _(' Default device')] = pipe % name
|
self.devices[text % _('Default device')] = pipe % name
|
||||||
for device in devices:
|
for device in devices:
|
||||||
element.set_state(Gst.State.NULL)
|
element.set_state(Gst.State.NULL)
|
||||||
element.set_property('device', device)
|
element.set_property('device', device)
|
||||||
|
|
Loading…
Reference in New Issue