changeset 4a2daceca341 in /home/hg/repos/gajim

branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=4a2daceca341
description: always present room JID LTR. Fixes #7402

diffstat:

 src/common/i18n.py       |   2 +-
 src/groupchat_control.py |  11 ++++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 9e6cfe05c032 -r 4a2daceca341 src/common/i18n.py
--- a/src/common/i18n.py        Wed Jul 31 19:15:42 2013 +0200
+++ b/src/common/i18n.py        Thu Aug 01 19:05:00 2013 +0200
@@ -28,7 +28,7 @@
 import unicodedata
 
 # May be changed after GTK is imported
-direction_mark = u'\u200F'
+direction_mark = u'\u200E'
 
 def paragraph_direction_mark(text):
     """
diff -r 9e6cfe05c032 -r 4a2daceca341 src/groupchat_control.py
--- a/src/groupchat_control.py  Wed Jul 31 19:15:42 2013 +0200
+++ b/src/groupchat_control.py  Thu Aug 01 19:05:00 2013 +0200
@@ -236,7 +236,8 @@
                     _('Sending private message failed'),
                     #in second %s code replaces with nickname
                     _('You are no longer in group chat "%(room)s" or '
-                    '"%(nick)s" has left.') % {'room': room, 'nick': nick})
+                    '"%(nick)s" has left.') % {'room': u'\u200E' + room,
+                    'nick': nick})
                 return
 
         ChatControl.send_message(self, message, xhtml=xhtml,
@@ -780,7 +781,7 @@
             name = self.get_continued_conversation_name()
         else:
             name = self.room_jid
-        text = '<span %s>%s</span>' % (font_attrs, name)
+        text = '<span %s>%s</span>' % (font_attrs, u'\u200E' + name)
         self.name_label.set_markup(text)
 
         if self.subject:
@@ -2189,9 +2190,9 @@
                 reason, jid)
 
         # Ask for a reason
-        dialogs.DoubleInputDialog(_('Destroying %s') % self.room_jid,
-            _('You are going to definitively destroy this room.\n'
-            'You may specify a reason below:'),
+        dialogs.DoubleInputDialog(_('Destroying %s') % u'\u200E' + \
+            self.room_jid, _('You are going to definitively destroy this \
+            room.\nYou may specify a reason below:'),
             _('You may also enter an alternate venue:'), ok_handler=on_ok)
 
     def _on_bookmark_room_menuitem_activate(self, widget):
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to