always present room JID LTR. Fixes #7402
This commit is contained in:
		
							parent
							
								
									786584a669
								
							
						
					
					
						commit
						65a979e7de
					
				
					 2 changed files with 7 additions and 6 deletions
				
			
		|  | @ -28,7 +28,7 @@ from common import defs | |||
| import unicodedata | ||||
| 
 | ||||
| # May be changed after GTK is imported | ||||
| direction_mark = '\u200F' | ||||
| direction_mark = '\u200E' | ||||
| 
 | ||||
| def paragraph_direction_mark(text): | ||||
|     """ | ||||
|  |  | |||
|  | @ -242,7 +242,8 @@ class PrivateChatControl(ChatControl): | |||
|                     _('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, | ||||
|  | @ -790,7 +791,7 @@ class GroupchatControl(ChatControlBase): | |||
|             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: | ||||
|  | @ -2198,9 +2199,9 @@ class GroupchatControl(ChatControlBase): | |||
|                 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): | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue