fixing some strings to be more accurate
This commit is contained in:
		
							parent
							
								
									ef147a16bc
								
							
						
					
					
						commit
						d44e881640
					
				
					 2 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -93,8 +93,8 @@ class Groupchat_window(chat.Chat):
 | 
			
		|||
		"""close window"""
 | 
			
		||||
		for room_jid in self.xmls:
 | 
			
		||||
			if time.time() - self.last_message_time[room_jid] < 2:
 | 
			
		||||
				dialog = dialogs.Confirmation_dialog(_('You have unread messages in room "%s".'), \
 | 
			
		||||
					_('If you close this window, these messages will be lost.') % \
 | 
			
		||||
				dialog = dialogs.Confirmation_dialog(_('You just received a new message in room "%s".'), \
 | 
			
		||||
					_('If you close this window, this message will be lost.') % \
 | 
			
		||||
					room_jid.split('@')[0])
 | 
			
		||||
				if dialog.get_response() != gtk.RESPONSE_OK:
 | 
			
		||||
					return True #stop the propagation of the event
 | 
			
		||||
| 
						 | 
				
			
			@ -540,8 +540,8 @@ class Groupchat_window(chat.Chat):
 | 
			
		|||
	def remove_tab(self, room_jid):
 | 
			
		||||
		if time.time() - self.last_message_time[room_jid] < 2:
 | 
			
		||||
			dialog = dialogs.Confirmation_dialog(
 | 
			
		||||
				_('You have unread messages in room "%s"'),
 | 
			
		||||
				_('If you close this tab, the messages will be lost.') % \
 | 
			
		||||
				_('You just received a new message in room "%s"'),
 | 
			
		||||
				_('If you close this tab, the message will be lost.') % \
 | 
			
		||||
				room_jid.split('@')[0])
 | 
			
		||||
			if dialog.get_response() != gtk.RESPONSE_OK:
 | 
			
		||||
				return
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -127,7 +127,7 @@ class Tabbed_chat_window(chat.Chat):
 | 
			
		|||
		for jid in self.users:
 | 
			
		||||
			if time.time() - self.last_message_time[jid] < 2: # 2 seconds
 | 
			
		||||
				dialog = dialogs.Confirmation_dialog(
 | 
			
		||||
	_('You have an unread message from "%s" in the last two seconds' % jid),
 | 
			
		||||
					_('You just received a new message from "%s"' % jid),
 | 
			
		||||
					_('If you close the window, this message will be lost.'))
 | 
			
		||||
				if dialog.get_response() != gtk.RESPONSE_OK:
 | 
			
		||||
					return True #stop the propagation of the event
 | 
			
		||||
| 
						 | 
				
			
			@ -160,7 +160,7 @@ class Tabbed_chat_window(chat.Chat):
 | 
			
		|||
	def remove_tab(self, jid):
 | 
			
		||||
		if time.time() - self.last_message_time[jid] < 2:
 | 
			
		||||
			dialog = dialogs.Confirmation_dialog(
 | 
			
		||||
				_('You have an unread message from "%s"' % jid),
 | 
			
		||||
				_('You just received a new message from "%s"' % jid),
 | 
			
		||||
				_('If you close this tab, the message will be lost.'))
 | 
			
		||||
			if dialog.get_response() != gtk.RESPONSE_OK:
 | 
			
		||||
				return
 | 
			
		||||
| 
						 | 
				
			
			@ -237,7 +237,7 @@ class Tabbed_chat_window(chat.Chat):
 | 
			
		|||
			elif (event.state & gtk.gdk.SHIFT_MASK):
 | 
			
		||||
					return False
 | 
			
		||||
			if gajim.connections[self.account].connected < 2: #we are not connected
 | 
			
		||||
				dialogs.Error_dialog(_("You're connection has been lost."), \
 | 
			
		||||
				dialogs.Error_dialog(_("A connection is not available"),
 | 
			
		||||
                        _("Your message can't be sent until you reconnect.")).get_response()
 | 
			
		||||
				return True
 | 
			
		||||
			if message != '' or message != '\n':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue