add account and server name to insecure connection dialog. Fixes #6841
This commit is contained in:
		
							parent
							
								
									8bae294150
								
							
						
					
					
						commit
						769ce99f6c
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1276,9 +1276,11 @@ class Interface:
 | 
			
		|||
                show='offline'))
 | 
			
		||||
 | 
			
		||||
        pritext = _('Insecure connection')
 | 
			
		||||
        sectext = _('You are about to connect to the server with an insecure '
 | 
			
		||||
                'connection. This means all your conversations will be '
 | 
			
		||||
                'exchanged unencrypted. Are you sure you want to do that?')
 | 
			
		||||
        sectext = _('You are about to connect to the account %(account)s '
 | 
			
		||||
            '(%(server)s) with an insecure connection. This means all your '
 | 
			
		||||
            'conversations will be exchanged unencrypted. Are you sure you '
 | 
			
		||||
            'want to do that?') % {'account': obj.conn.name,
 | 
			
		||||
            'server': gajim.get_hostname_from_account(obj.conn.name)}
 | 
			
		||||
        checktext1 = _('Yes, I really want to connect insecurely')
 | 
			
		||||
        checktext2 = _('_Do not ask me again')
 | 
			
		||||
        if 'plain_connection' in self.instances[obj.conn.name]['online_dialog']:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue