From 458cb97f8c159c3c034ac1006915e5fe5c6d7fbe Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Fri, 9 Aug 2013 22:24:58 +0400 Subject: [PATCH] [Darlan] Present JID LTR in tooltip. Fixes #7402 --- src/tooltips.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index 93ca82838..e7848f5e9 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -374,7 +374,8 @@ class GCTooltip(BaseTooltip): properties.append((show, None)) if contact.jid.strip(): - properties.append((_('Jabber ID: '), "%s" % contact.jid)) + properties.append((_('Jabber ID: '), u'\u200E' + "%s" % \ + contact.jid)) if hasattr(contact, 'resource') and contact.resource.strip(): properties.append((_('Resource: '), GLib.markup_escape_text( @@ -591,7 +592,8 @@ class RosterTooltip(NotificationAreaTooltip): self._append_pep_info(contact, properties) - properties.append((_('Jabber ID: '), "%s" % prim_contact.jid)) + properties.append((_('Jabber ID: '), u'\u200E' + "%s" % \ + prim_contact.jid)) # contact has only one ressource if num_resources == 1 and contact.resource: