mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	python: Convert translated positional {} fields to {named} fields.
Translators benefit from the extra information in the field names, and need the reordering freedom that isn’t available with multiple positional fields. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							db6323b2c4
						
					
				
				
					commit
					143baa4243
				
			@@ -210,7 +210,7 @@ def check_add_user_group(
 | 
			
		||||
        do_send_create_user_group_event(user_group, initial_members)
 | 
			
		||||
        return user_group
 | 
			
		||||
    except django.db.utils.IntegrityError:
 | 
			
		||||
        raise JsonableError(_("User group '{}' already exists.").format(name))
 | 
			
		||||
        raise JsonableError(_("User group '{group_name}' already exists.").format(group_name=name))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def do_send_user_group_update_event(
 | 
			
		||||
@@ -242,7 +242,7 @@ def do_update_user_group_name(
 | 
			
		||||
            ).decode(),
 | 
			
		||||
        )
 | 
			
		||||
    except django.db.utils.IntegrityError:
 | 
			
		||||
        raise JsonableError(_("User group '{}' already exists.").format(name))
 | 
			
		||||
        raise JsonableError(_("User group '{group_name}' already exists.").format(group_name=name))
 | 
			
		||||
    do_send_user_group_update_event(user_group, dict(name=name))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user