[Darlan] Present JID LTR in tooltip. Fixes #7402

This commit is contained in:
Denis Fomin 2013-08-09 22:24:58 +04:00
parent 4347fd80b3
commit 458cb97f8c
1 changed files with 4 additions and 2 deletions

View File

@ -374,7 +374,8 @@ class GCTooltip(BaseTooltip):
properties.append((show, None)) properties.append((show, None))
if contact.jid.strip(): if contact.jid.strip():
properties.append((_('Jabber ID: '), "<b>%s</b>" % contact.jid)) properties.append((_('Jabber ID: '), u'\u200E' + "<b>%s</b>" % \
contact.jid))
if hasattr(contact, 'resource') and contact.resource.strip(): if hasattr(contact, 'resource') and contact.resource.strip():
properties.append((_('Resource: '), GLib.markup_escape_text( properties.append((_('Resource: '), GLib.markup_escape_text(
@ -591,7 +592,8 @@ class RosterTooltip(NotificationAreaTooltip):
self._append_pep_info(contact, properties) self._append_pep_info(contact, properties)
properties.append((_('Jabber ID: '), "<b>%s</b>" % prim_contact.jid)) properties.append((_('Jabber ID: '), u'\u200E' + "<b>%s</b>" % \
prim_contact.jid))
# contact has only one ressource # contact has only one ressource
if num_resources == 1 and contact.resource: if num_resources == 1 and contact.resource: